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 |