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

Unified Diff: third_party/ots/src/ots.cc

Issue 1911123002: Pass through 'sbix' table Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add a layout test with a test sbix font Created 4 years, 8 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 | « third_party/WebKit/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ots/src/ots.cc
diff --git a/third_party/ots/src/ots.cc b/third_party/ots/src/ots.cc
index bce433db062ec1dfd566fed0efee42075e84ee92..209b0ea2153fb6dbb3c277db06456b804fe2325e 100644
--- a/third_party/ots/src/ots.cc
+++ b/third_party/ots/src/ots.cc
@@ -689,8 +689,9 @@ bool ProcessGeneric(ots::OpenTypeFile *header,
GetTableAction(header, tag_) == ots::TABLE_ACTION_PASSTHRU)
// We don't sanitise bitmap table, but don't reject bitmap-only fonts if
// we keep the tables.
- if (!PASSTHRU_TABLE(OTS_TAG('C','B','D','T')) ||
- !PASSTHRU_TABLE(OTS_TAG('C','B','L','C'))) {
+ if ((!PASSTHRU_TABLE(OTS_TAG('C','B','D','T')) ||
+ !PASSTHRU_TABLE(OTS_TAG('C','B','L','C'))) &&
+ !PASSTHRU_TABLE(OTS_TAG('s','b','i','x'))) {
return OTS_FAILURE_MSG_HDR("no supported glyph shapes table(s) present");
}
#undef PASSTHRU_TABLE
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698