Bug 1601406 [wpt PR 20618] - Advertise DocumentPolicy & Network Err when receive...
[gecko.git] / gfx / ots / src / gpos.h
blob423c8ae8321179ad31e2d9b768bd339caf24174f
1 // Copyright (c) 2011-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_GPOS_H_
6 #define OTS_GPOS_H_
8 #include "ots.h"
10 namespace ots {
12 class OpenTypeGPOS : public Table {
13 public:
14 explicit OpenTypeGPOS(Font *font, uint32_t tag)
15 : Table(font, tag, tag),
16 num_lookups(0),
17 m_data(NULL),
18 m_length(0) {
21 bool Parse(const uint8_t *data, size_t length);
22 bool Serialize(OTSStream *out);
24 // Number of lookups in GPOS table
25 uint16_t num_lookups;
27 private:
28 const uint8_t *m_data;
29 size_t m_length;
32 } // namespace ots
34 #endif