Fix trutype embedded in PDF crashing ADE

This commit is contained in:
Kovid Goyal 2013-01-02 09:02:24 +05:30
parent f213f90fbe
commit 99551f1a6d

View File

@ -84,7 +84,7 @@ def do_warn(warnings, *args):
def pdf_subset(sfnt, glyphs):
for tag in tuple(sfnt.tables):
if tag not in {b'hhea', b'head', b'hmtx', b'maxp',
b'OS/2', b'post', b'cvt', b'fpgm', b'glyf', b'loca',
b'OS/2', b'post', b'cvt ', b'fpgm', b'glyf', b'loca',
b'prep', b'CFF ', b'VORG'}:
# Remove non core tables since they are unused in PDF rendering
del sfnt[tag]