shithub: freetype+ttf2subf

Download patch

ref: 0eb9b1f57150356671f60dc6cec88dd075c1c601
parent: 8b05b5d801e66846caa6aed66c1d24f20f4da705
author: suzuki toshiya <[email protected]>
date: Sat Aug 28 17:41:16 EDT 2010

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.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
 2010-08-28  suzuki toshiya  <[email protected]>
 
+	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  <[email protected]>
+
 	Register yet another tricky TrueType font.
 
 	* src/truetype/ttobjs.c (tt_check_trickyness): Add `HuaTianKaiTi?',
--- 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.           */