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.
4 
5 #ifndef OTS_MAXP_H_
6 #define OTS_MAXP_H_
7 
8 #include "ots.h"
9 
10 namespace ots {
11 
12 class OpenTypeMAXP : public Table {
13  public:
OpenTypeMAXP(Font * font,uint32_t tag)14   explicit OpenTypeMAXP(Font *font, uint32_t tag)
15       : Table(font, tag, tag) { }
16 
17   bool Parse(const uint8_t *data, size_t length);
18   bool Serialize(OTSStream *out);
19 
20   uint16_t num_glyphs;
21   bool version_1;
22 
23   uint16_t max_points;
24   uint16_t max_contours;
25   uint16_t max_c_points;
26   uint16_t max_c_contours;
27 
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;
35 
36   uint16_t max_c_components;
37   uint16_t max_c_depth;
38 };
39 
40 }  // namespace ots
41 
42 #endif  // OTS_MAXP_H_
43