Bug 1601406 [wpt PR 20618] - Advertise DocumentPolicy & Network Err when receive...
[gecko.git] / gfx / ots / src / sile.h
blobbdb00606f6e6a706870b7df51426c390a0ea2f00
1 // Copyright (c) 2009-2017 The OTS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef OTS_SILE_H_
6 #define OTS_SILE_H_
8 #include "ots.h"
9 #include "graphite.h"
11 #include <vector>
13 namespace ots {
15 class OpenTypeSILE : public Table {
16 public:
17 explicit OpenTypeSILE(Font* font, uint32_t tag)
18 : Table(font, tag, tag) { }
20 bool Parse(const uint8_t* data, size_t length);
21 bool Serialize(OTSStream* out);
23 private:
24 uint32_t version;
25 uint32_t checksum;
26 uint32_t createTime[2];
27 uint32_t modifyTime[2];
28 uint16_t fontNameLength;
29 std::vector<uint16_t> fontName;
30 uint16_t fontFileLength;
31 std::vector<uint16_t> baseFile;
34 } // namespace ots
36 #endif // OTS_SILE_H_