From 8a6f1b11baea2ff066bd95387d5667c86f1b9d6c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 21 Dec 2012 12:20:51 +0530 Subject: [PATCH] Drop the name table when subsetting a truetype font into a pdf file --- 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 640e2e42b6..9e20127614 100644 --- a/src/calibre/utils/fonts/sfnt/subset.py +++ b/src/calibre/utils/fonts/sfnt/subset.py @@ -83,7 +83,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'name', + 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'prep', b'CFF ', b'VORG'}: # Remove non core tables since they are unused in PDF rendering