/src/mozilla-central/gfx/ots/src/vmtx.h
Line | Count | Source (jump to first uncovered line) |
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. |
4 | | |
5 | | #ifndef OTS_VMTX_H_ |
6 | | #define OTS_VMTX_H_ |
7 | | |
8 | | #include "metrics.h" |
9 | | #include "vhea.h" |
10 | | #include "ots.h" |
11 | | |
12 | | namespace ots { |
13 | | |
14 | | struct OpenTypeVMTX : public OpenTypeMetricsTable { |
15 | | public: |
16 | | explicit OpenTypeVMTX(Font *font, uint32_t tag) |
17 | 0 | : OpenTypeMetricsTable(font, tag, tag, OTS_TAG_VHEA) { } |
18 | | |
19 | | bool Parse(const uint8_t *data, size_t length); |
20 | | bool Serialize(OTSStream *out); |
21 | | bool ShouldSerialize(); |
22 | | }; |
23 | | |
24 | | } // namespace ots |
25 | | |
26 | | #endif // OTS_VMTX_H_ |
27 | | |