From e0bd0c01d97fd1474157c6d9ed5bffa06ff123a5 Mon Sep 17 00:00:00 2001 From: Tom Kacvinsky Date: Mon, 13 Nov 2000 07:26:31 +0000 Subject: [PATCH] In function SFNT_Load_Face, set has_outline to true only if the font has a `CFF ' or `glyf' table. --- src/sfnt/sfobjs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c index ee3f193dd..3cf31a02f 100644 --- a/src/sfnt/sfobjs.c +++ b/src/sfnt/sfobjs.c @@ -286,7 +286,8 @@ /* */ /* do we have outlines in there? */ - has_outline = ( TT_LookUp_Table( face, TTAG_glyf ) != 0 ); + has_outline = ( ( TT_LookUp_Table( face, TTAG_glyf ) != 0 ) || + ( TT_LookUp_Table( face, TTAG_CFF ) != 0 ) ); is_apple_sbit = 0; #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS @@ -337,7 +338,7 @@ { /* return an error if this font file has no outlines */ if ( error == TT_Err_Table_Missing && has_outline ) - error = 0; + error = FT_Err_Ok; else goto Exit; }