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

Unified Diff: src/layout.h

Issue 6410047: OTS: Adds more layout common table supports.... (Closed) Base URL: http://ots.googlecode.com/svn/trunk/
Patch Set: '' Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gdef.cc ('k') | src/layout.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/layout.h
===================================================================
--- src/layout.h (revision 50)
+++ src/layout.h (working copy)
@@ -12,6 +12,24 @@
namespace ots {
+struct LookupTypeParser {
+ uint16_t type;
+ bool (*parse)(const OpenTypeFile *file, const uint8_t *data,
+ const size_t length);
+};
+
+bool ParseScriptListTable(const uint8_t *data, const size_t length,
+ const uint16_t num_features);
+
+bool ParseFeatureListTable(const uint8_t *data, const size_t length,
+ const uint16_t num_lookups,
+ uint16_t* num_features);
+
+bool ParseLookupListTable(OpenTypeFile *file, const uint8_t *data,
+ const size_t length, const size_t num_types,
+ const LookupTypeParser* parsers,
+ uint16_t *num_lookups);
+
bool ParseClassDefTable(const uint8_t *data, size_t length,
const uint16_t num_glyphs,
const uint16_t num_classes);
@@ -19,6 +37,8 @@
bool ParseCoverageTable(const uint8_t *data, size_t length,
const uint16_t num_glyphs);
+bool ParseDeviceTable(const uint8_t *data, size_t length);
+
} // namespace ots
#endif // OTS_LAYOUT_H_
« no previous file with comments | « src/gdef.cc ('k') | src/layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698