summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2002-03-26 17:40:55 +0000
committerDavid Turner <david@freetype.org>2002-03-26 17:40:55 +0000
commite40d0daf91f5238bda7bf68492d880644b28fd1b (patch)
tree26f33b79db2eb942a90feb8b4f5c3d3e7d1a480f
parent01585e5cbe07a9cf59a25fc9b509ec06b9f03e71 (diff)
downloadfreetype2-e40d0daf91f5238bda7bf68492d880644b28fd1b.tar.gz
small improvement to "Get_Name" to handle the case where no
English name is available..
-rw-r--r--src/sfnt/sfobjs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 5108877b3..c19581574 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -196,7 +196,10 @@
case TT_PLATFORM_MICROSOFT:
{
- if ( (rec->languageID & 0x3FF) == 0x009 )
+ /* we only take a non-English name when there is nothing */
+ /* else available in the font.. */
+ /* */
+ if ( found_win = -1 || (rec->languageID & 0x3FF) == 0x009 )
{
switch ( rec->encodingID )
{