Bug 1601406 [wpt PR 20618] - Advertise DocumentPolicy & Network Err when receive...
[gecko.git] / gfx / ots / src / gvar.h
blob8a90c57a390bf8b0c476b082bd29da7224c8a30e
1 // Copyright (c) 2018 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_GVAR_H_
6 #define OTS_GVAR_H_
8 #include "ots.h"
10 namespace ots {
12 // -----------------------------------------------------------------------------
13 // OpenTypeGVAR Interface
14 // -----------------------------------------------------------------------------
16 class OpenTypeGVAR : public Table {
17 public:
18 explicit OpenTypeGVAR(Font* font, uint32_t tag)
19 : Table(font, tag, tag) { }
21 bool Parse(const uint8_t* data, size_t length);
22 bool Serialize(OTSStream* out);
24 private:
25 const uint8_t *m_data;
26 size_t m_length;
29 } // namespace ots
31 #endif // OTS_GVAR_H_