Backed out changeset 1b14354719c0 (bug 1895254) for causing bustages on NavigationTra...
[gecko.git] / gfx / ots / src / head.h
bloba040fcf2488c115d10c693f1f608c397600471fe
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_HEAD_H_
6 #define OTS_HEAD_H_
8 #include "ots.h"
10 namespace ots {
12 class OpenTypeHEAD : public Table {
13 public:
14 explicit OpenTypeHEAD(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 uint32_t revision;
21 uint16_t flags;
22 uint16_t upem;
23 uint64_t created;
24 uint64_t modified;
26 int16_t xmin, xmax;
27 int16_t ymin, ymax;
29 uint16_t mac_style;
30 uint16_t min_ppem;
31 int16_t index_to_loc_format;
34 } // namespace ots
36 #endif // OTS_HEAD_H_