ref: 733c25571381fb68789ef4a5f9a1537f0ba2a039
parent: f9b34b580707c0de388c07b9097b9400d651cbb0
author: Graham Asher <[email protected]>
date: Thu Aug 1 12:16:16 EDT 2002
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.
--- 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;