[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] Re: a flag making FT_Open_Face() to use fallback family name
From: |
mpsuzuki |
Subject: |
[ft-devel] Re: a flag making FT_Open_Face() to use fallback family name |
Date: |
Sat, 28 Aug 2010 21:52:36 +0900 |
Thanks!
Just I've committed 2 changesets:
2010-08-28 suzuki toshiya <address@hidden>
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 <address@hidden>
Register yet another tricky TrueType font.
* src/truetype/ttobjs.c (tt_check_trickyness): Add `HuaTianKaiTi?',
a Kaishu typeface paired with `HuaTianSongTi?' by Huatian
Information Industry.
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index 11d662d..7475136 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -149,12 +149,13 @@
tt_check_trickyness( FT_String* name )
{
#define TRICK_NAMES_MAX_CHARACTERS 16
-#define TRICK_NAMES_COUNT 7
+#define TRICK_NAMES_COUNT 8
static const char
trick_names[TRICK_NAMES_COUNT][TRICK_NAMES_MAX_CHARACTERS+1] =
{
"DFKaiSho-SB", /* dfkaisb.ttf */
"DFKaiShu",
"DFKai-SB", /* kaiu.ttf */
+ "HuaTianKaiTi?", /* htkt2.ttf */
"HuaTianSongTi?", /* htst3.ttf */
"MingLiU", /* mingliu.ttf & mingliu.ttc */
"PMingLiU", /* mingliu.ttc */
@@ -164,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. */
On Sat, 28 Aug 2010 13:26:02 +0200 (CEST)
Werner LEMBERG <address@hidden> wrote:
>
>> David Bevan proposed to enable the hinter for all "nameless" fonts.
>> [...] So, I want to apply David's proposal in next release of
>> FreeType2, for first step.
>
>This is fine with me.
>
>
> Werner