From 733c25571381fb68789ef4a5f9a1537f0ba2a039 Mon Sep 17 00:00:00 2001 From: Graham Asher Date: Thu, 1 Aug 2002 16:16:16 +0000 Subject: [PATCH] T1_Open_Face now tolerates a face with no charstrings if there is an incremental loading interface. This is essential if incremental loading of Type 1 fonts supplied by PostScript is to work. --- src/type1/t1load.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/type1/t1load.c b/src/type1/t1load.c index b06c8d838..3b7c9d769 100644 --- a/src/type1/t1load.c +++ b/src/type1/t1load.c @@ -1711,11 +1711,14 @@ type1->subrs_len = loader.subrs.lengths; } - if ( !loader.charstrings.init ) - { - FT_ERROR(( "T1_Open_Face: no charstrings array in face!\n" )); - error = T1_Err_Invalid_File_Format; - } +#ifdef FT_CONFIG_OPTION_INCREMENTAL + if (!face->root.internal->incremental_interface) +#endif + if ( !loader.charstrings.init ) + { + FT_ERROR(( "T1_Open_Face: no charstrings array in face!\n" )); + error = T1_Err_Invalid_File_Format; + } loader.charstrings.init = 0; type1->charstrings_block = loader.charstrings.block;