Skip to content

Commit

Permalink
Revert "Do not reject a sbix font without loca/glyf tables."
Browse files Browse the repository at this point in the history
This reverts commit 736d3c0.
  • Loading branch information
khaledhosny committed May 3, 2016
1 parent ac002e5 commit 56b9be8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ots.cc
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,8 @@ 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'))) &&
!PASSTHRU_TABLE(OTS_TAG('s','b','i','x'))) {
if (!PASSTHRU_TABLE(OTS_TAG('C','B','D','T')) ||
!PASSTHRU_TABLE(OTS_TAG('C','B','L','C'))) {
return OTS_FAILURE_MSG_HDR("no supported glyph shapes table(s) present");
}
#undef PASSTHRU_TABLE
Expand Down

0 comments on commit 56b9be8

Please sign in to comment.