forked from minhngoc25a/freetype2
* src/sfnt/sfobjs.c (tt_face_get_name): support some function
which report their English names through an Apple Roman (platform,encoding) pair, with language_id != English if the font uses another name entry with language_id == English, it will be selected correctly though. * src/truetype/ttobjs.c: add unpatent-hinting selection for "mingli.ttf"
This commit is contained in:
parent
36d2eab054
commit
f3050059dd
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
2006-09-11 David Turner <david@freetype.org>
|
||||
|
||||
* src/sfnt/sfobjs.c (tt_face_get_name): support some function
|
||||
which report their English names through an Apple Roman
|
||||
(platform,encoding) pair, with language_id != English
|
||||
|
||||
if the font uses another name entry with language_id == English,
|
||||
it will be selected correctly though.
|
||||
|
||||
* src/truetype/ttobjs.c: add unpatent-hinting selection for
|
||||
"mingli.ttf"
|
||||
|
||||
2006-09-05 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/truetype/ttpload.c (tt_face_load_hdmx): Handle `record_size'
|
||||
|
|
|
@ -165,9 +165,11 @@
|
|||
FT_String* result = NULL;
|
||||
FT_UShort n;
|
||||
TT_NameEntryRec* rec;
|
||||
FT_Int found_apple = -1;
|
||||
FT_Int found_win = -1;
|
||||
FT_Int found_unicode = -1;
|
||||
FT_Int found_apple = -1;
|
||||
FT_Int found_apple_roman = -1;
|
||||
FT_Int found_apple_english = -1;
|
||||
FT_Int found_win = -1;
|
||||
FT_Int found_unicode = -1;
|
||||
|
||||
FT_Bool is_english = 0;
|
||||
|
||||
|
@ -200,8 +202,14 @@
|
|||
break;
|
||||
|
||||
case TT_PLATFORM_MACINTOSH:
|
||||
/* This is a bit special, because some fonts will use either
|
||||
* an English language id, or a Roman encoding id, to indicate
|
||||
* the English version of their font name
|
||||
*/
|
||||
if ( rec->languageID == TT_MAC_LANGID_ENGLISH )
|
||||
found_apple = n;
|
||||
found_apple_english = n;
|
||||
else if ( rec->encodingID == TT_MAC_ID_ROMAN )
|
||||
found_apple_roman = n;
|
||||
|
||||
break;
|
||||
|
||||
|
@ -232,6 +240,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
found_apple = found_apple_roman;
|
||||
if ( found_apple_english >= 0 )
|
||||
found_apple = found_apple_english;
|
||||
|
||||
/* some fonts contain invalid Unicode or Macintosh formatted entries; */
|
||||
/* we will thus favor names encoded in Windows formats if available */
|
||||
/* (provided it is an English name) */
|
||||
|
|
|
@ -272,6 +272,7 @@
|
|||
"HuaTianSongTi?", /* htst3.ttf */
|
||||
"MingLiU", /* mingliu.ttf & mingliu.ttc */
|
||||
"PMingLiU", /* mingliu.ttc */
|
||||
"MingLi43", /* mingli.ttf */
|
||||
NULL
|
||||
};
|
||||
int nn;
|
||||
|
|
Loading…
Reference in New Issue