From 9f8309f12a8e19b13327f22c99784ef9f658779a Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 24 Jul 2004 21:57:39 +0000 Subject: [PATCH] * src/truetype/ttobjs.c (tt_face_init): Accept 0x00020000 format tag found in some Arphic fonts made for Chinese version of Windows 3.1. --- ChangeLog | 5 +++++ src/truetype/ttobjs.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5ae1a9c8f..55647cc48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-07-23 Werner Lemberg + + * src/truetype/ttobjs.c (tt_face_init): Accept 0x00020000 format tag + found in some Arphic fonts made for Chinese version of Windows 3.1. + 2004-07-17 David Turner Fixed a dangling pointer bug in the cache code that happened in very diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c index 3914ba5da..b606ace6d 100644 --- a/src/truetype/ttobjs.c +++ b/src/truetype/ttobjs.c @@ -190,8 +190,11 @@ if ( error ) goto Exit; - /* We must also be able to accept Mac/GX fonts, as well as OT ones */ + /* We must also be able to accept Mac/GX fonts, as well as OT ones. */ + /* The 0x00020000 tag is completely undocumented; some fonts from */ + /* Arphic made for Chinese Windows 3.1 have this. */ if ( face->format_tag != 0x00010000L && /* MS fonts */ + face->format_tag != 0x00020000L && /* CJK fonts for Win 3.1 */ face->format_tag != TTAG_true ) /* Mac fonts */ { FT_TRACE2(( "[not a valid TTF font]\n" ));