From 454a428542e34ac043fc47a3e21b3c8e6a7b070c Mon Sep 17 00:00:00 2001 From: David Turner Date: Thu, 13 Jan 2000 18:19:51 +0000 Subject: [PATCH] fixed a bug which caused some font family and style names to be incorrectly ignored.. --- src/truetype/ttgload.c | 2 +- src/truetype/ttobjs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index 5f0fb36f1..c6fd2c860 100644 --- a/src/truetype/ttgload.c +++ b/src/truetype/ttgload.c @@ -296,7 +296,7 @@ if ( n_contours > left_contours ) { FT_TRACE0(( "ERROR: Glyph index %ld has %d contours > left %d\n", - subglyph.index, + subg->index, n_contours, left_contours )); return TT_Err_Too_Many_Contours; diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c index 24adfd857..da1d49452 100644 --- a/src/truetype/ttobjs.c +++ b/src/truetype/ttobjs.c @@ -145,7 +145,7 @@ /* Test for Microsoft English language */ if ( rec->platformID == TT_PLATFORM_MICROSOFT && - rec->encodingID < TT_MS_ID_UNICODE_CS && + rec->encodingID <= TT_MS_ID_UNICODE_CS && (rec->languageID & 0x3FF) == 0x009 ) found = 1;