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

Unified Diff: third_party/ots/src/layout.h

Issue 797183002: Revert of Updating OTS repo from https://github.com/khaledhosny/ots.git (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « third_party/ots/src/kern.cc ('k') | third_party/ots/src/layout.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ots/src/layout.h
diff --git a/third_party/ots/src/layout.h b/third_party/ots/src/layout.h
deleted file mode 100644
index 3b94589e16d07606ab94f99ecdbb67e8d68f97b9..0000000000000000000000000000000000000000
--- a/third_party/ots/src/layout.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef OTS_LAYOUT_H_
-#define OTS_LAYOUT_H_
-
-#include "ots.h"
-
-// Utility functions for OpenType layout common table formats.
-// http://www.microsoft.com/typography/otspec/chapter2.htm
-
-namespace ots {
-
-
-struct LookupSubtableParser {
- struct TypeParser {
- uint16_t type;
- bool (*parse)(const OpenTypeFile *file, const uint8_t *data,
- const size_t length);
- };
- size_t num_types;
- uint16_t extension_type;
- const TypeParser *parsers;
-
- bool Parse(const OpenTypeFile *file, const uint8_t *data,
- const size_t length, const uint16_t lookup_type) const;
-};
-
-bool ParseScriptListTable(const ots::OpenTypeFile *file,
- const uint8_t *data, const size_t length,
- const uint16_t num_features);
-
-bool ParseFeatureListTable(const ots::OpenTypeFile *file,
- 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 LookupSubtableParser* parser,
- uint16_t* num_lookups);
-
-bool ParseClassDefTable(const ots::OpenTypeFile *file,
- const uint8_t *data, size_t length,
- const uint16_t num_glyphs,
- const uint16_t num_classes);
-
-bool ParseCoverageTable(const ots::OpenTypeFile *file,
- const uint8_t *data, size_t length,
- const uint16_t num_glyphs,
- const uint16_t expected_num_glyphs = 0);
-
-bool ParseDeviceTable(const ots::OpenTypeFile *file,
- const uint8_t *data, size_t length);
-
-// Parser for 'Contextual' subtable shared by GSUB/GPOS tables.
-bool ParseContextSubtable(const ots::OpenTypeFile *file,
- const uint8_t *data, const size_t length,
- const uint16_t num_glyphs,
- const uint16_t num_lookups);
-
-// Parser for 'Chaining Contextual' subtable shared by GSUB/GPOS tables.
-bool ParseChainingContextSubtable(const ots::OpenTypeFile *file,
- const uint8_t *data, const size_t length,
- const uint16_t num_glyphs,
- const uint16_t num_lookups);
-
-bool ParseExtensionSubtable(const OpenTypeFile *file,
- const uint8_t *data, const size_t length,
- const LookupSubtableParser* parser);
-
-} // namespace ots
-
-#endif // OTS_LAYOUT_H_
-
« no previous file with comments | « third_party/ots/src/kern.cc ('k') | third_party/ots/src/layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698