Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Side by Side Diff: src/layout.h

Issue 139563002: [OTS] Add support for the MATH table. (Closed) Base URL: https://chromium.googlesource.com/external/ots.git@master
Patch Set: More fixes. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ots-common.gypi ('k') | src/layout.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ots-common.gypi ('k') | src/layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698