Force hinting when the font lacks its familyname. In Type42 or Type11 font embedded in PostScript & PDF, TrueType sfnt stream may lack `name' table because they are not required. Hinting for nameless fonts is safer for PDFs including embedded Chinese fonts. Written by David Bevan, see: http://lists.gnu.org/archive/html/freetype-devel/2010-08/msg00021.html http://lists.freedesktop.org/archives/poppler/2010-August/006310.html * src/truetype/ttobjs.c (tt_check_trickyness): If a NULL pointer by nameless font is given, TRUE is returned to enable hinting.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
diff --git a/ChangeLog b/ChangeLog
index 29a2963..3eb8b65 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
2010-08-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+ Force hinting when the font lacks its familyname.
+ In Type42 or Type11 font embedded in PostScript & PDF, TrueType
+ sfnt stream may lack `name' table because they are not required.
+ Hinting for nameless fonts is safer for PDFs including embedded
+ Chinese fonts. Written by David Bevan, see:
+
+ http://lists.gnu.org/archive/html/freetype-devel/2010-08/msg00021.html
+ http://lists.freedesktop.org/archives/poppler/2010-August/006310.html
+
+ * src/truetype/ttobjs.c (tt_check_trickyness): If a NULL pointer
+ by nameless font is given, TRUE is returned to enable hinting.
+
+2010-08-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
Register yet another tricky TrueType font.
* src/truetype/ttobjs.c (tt_check_trickyness): Add `HuaTianKaiTi?',
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index eab3e54..7475136 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -165,7 +165,7 @@
if ( !name )
- return FALSE;
+ return TRUE;
/* Note that we only check the face name at the moment; it might */
/* be worth to do more checks for a few special cases. */