Backed out changeset 1b14354719c0 (bug 1895254) for causing bustages on NavigationTra...
[gecko.git] / gfx / ots / src / maxp.h
blob99dbdc439ad53ff130ec2c77fcbb50c325357f16
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_MAXP_H_
6 #define OTS_MAXP_H_
8 #include "ots.h"
10 namespace ots {
12 class OpenTypeMAXP : public Table {
13 public:
14 explicit OpenTypeMAXP(Font *font, uint32_t tag)
15 : Table(font, tag, tag) { }
17 bool Parse(const uint8_t *data, size_t length);
18 bool Serialize(OTSStream *out);
20 uint16_t num_glyphs;
21 bool version_1;
23 uint16_t max_points;
24 uint16_t max_contours;
25 uint16_t max_c_points;
26 uint16_t max_c_contours;
28 uint16_t max_zones;
29 uint16_t max_t_points;
30 uint16_t max_storage;
31 uint16_t max_fdefs;
32 uint16_t max_idefs;
33 uint16_t max_stack;
34 uint16_t max_size_glyf_instructions;
36 uint16_t max_c_components;
37 uint16_t max_c_depth;
40 } // namespace ots
42 #endif // OTS_MAXP_H_