OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef OTS_LAYOUT_H_ | 5 #ifndef OTS_LAYOUT_H_ |
6 #define OTS_LAYOUT_H_ | 6 #define OTS_LAYOUT_H_ |
7 | 7 |
8 #include "ots.h" | 8 #include "ots.h" |
9 | 9 |
10 // Utility functions for OpenType layout common table formats. | 10 // Utility functions for OpenType layout common table formats. |
(...skipping 26 matching lines...) Expand all Loading... |
37 bool ParseLookupListTable(OpenTypeFile *file, const uint8_t *data, | 37 bool ParseLookupListTable(OpenTypeFile *file, const uint8_t *data, |
38 const size_t length, | 38 const size_t length, |
39 const LookupSubtableParser* parser, | 39 const LookupSubtableParser* parser, |
40 uint16_t* num_lookups); | 40 uint16_t* num_lookups); |
41 | 41 |
42 bool ParseClassDefTable(const uint8_t *data, size_t length, | 42 bool ParseClassDefTable(const uint8_t *data, size_t length, |
43 const uint16_t num_glyphs, | 43 const uint16_t num_glyphs, |
44 const uint16_t num_classes); | 44 const uint16_t num_classes); |
45 | 45 |
46 bool ParseCoverageTable(const uint8_t *data, size_t length, | 46 bool ParseCoverageTable(const uint8_t *data, size_t length, |
47 const uint16_t num_glyphs); | 47 const uint16_t num_glyphs, |
| 48 const uint16_t expected_num_glyphs = 0); |
48 | 49 |
49 bool ParseDeviceTable(const uint8_t *data, size_t length); | 50 bool ParseDeviceTable(const uint8_t *data, size_t length); |
50 | 51 |
51 // Parser for 'Contextual' subtable shared by GSUB/GPOS tables. | 52 // Parser for 'Contextual' subtable shared by GSUB/GPOS tables. |
52 bool ParseContextSubtable(const uint8_t *data, const size_t length, | 53 bool ParseContextSubtable(const uint8_t *data, const size_t length, |
53 const uint16_t num_glyphs, | 54 const uint16_t num_glyphs, |
54 const uint16_t num_lookups); | 55 const uint16_t num_lookups); |
55 | 56 |
56 // Parser for 'Chaining Contextual' subtable shared by GSUB/GPOS tables. | 57 // Parser for 'Chaining Contextual' subtable shared by GSUB/GPOS tables. |
57 bool ParseChainingContextSubtable(const uint8_t *data, const size_t length, | 58 bool ParseChainingContextSubtable(const uint8_t *data, const size_t length, |
58 const uint16_t num_glyphs, | 59 const uint16_t num_glyphs, |
59 const uint16_t num_lookups); | 60 const uint16_t num_lookups); |
60 | 61 |
61 bool ParseExtensionSubtable(const OpenTypeFile *file, | 62 bool ParseExtensionSubtable(const OpenTypeFile *file, |
62 const uint8_t *data, const size_t length, | 63 const uint8_t *data, const size_t length, |
63 const LookupSubtableParser* parser); | 64 const LookupSubtableParser* parser); |
64 | 65 |
65 } // namespace ots | 66 } // namespace ots |
66 | 67 |
67 #endif // OTS_LAYOUT_H_ | 68 #endif // OTS_LAYOUT_H_ |
68 | 69 |
OLD | NEW |