Commit 0eb9b1f57150356671f60dc6cec88dd075c1c601

suzuki toshiya 2010-08-28T21:41:16

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.

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.           */