From 99551f1a6da571d376ce262128331edb9f3d23d1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 2 Jan 2013 09:02:24 +0530 Subject: [PATCH] Fix trutype embedded in PDF crashing ADE --- src/calibre/utils/fonts/sfnt/subset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/fonts/sfnt/subset.py b/src/calibre/utils/fonts/sfnt/subset.py index 9e20127614..bb8b73d013 100644 --- a/src/calibre/utils/fonts/sfnt/subset.py +++ b/src/calibre/utils/fonts/sfnt/subset.py @@ -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]