Line | Count | Source |
1 | | // Copyright (c) 2022 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. |
4 | | |
5 | | #ifndef OTS_COLR_H_ |
6 | | #define OTS_COLR_H_ |
7 | | |
8 | | #include "ots.h" |
9 | | |
10 | | namespace ots { |
11 | | |
12 | | class OpenTypeCOLR : public Table { |
13 | | public: |
14 | | explicit OpenTypeCOLR(Font *font, uint32_t tag) |
15 | 639 | : Table(font, tag, tag), |
16 | 639 | m_data(NULL), |
17 | 639 | m_length(0) { |
18 | 639 | } |
19 | | |
20 | | bool Parse(const uint8_t *data, size_t length); |
21 | | bool Serialize(OTSStream *out); |
22 | | |
23 | | private: |
24 | | const uint8_t *m_data; |
25 | | size_t m_length; |
26 | | }; |
27 | | |
28 | | } // namespace ots |
29 | | |
30 | | #endif // OTS_COLR_H_ |
31 | | |