ref: fe6da50d04675baab18cd09359ba145e52b587c7
parent: dbe5622335e5393660959109f11e29e44f64ecb0
author: Werner Lemberg <[email protected]>
date: Tue Jan 5 05:10:15 EST 2010
Thinkos.
--- a/src/psaux/t1decode.c
+++ b/src/psaux/t1decode.c
@@ -212,8 +212,12 @@
/* `glyph_names' is set to 0 for CID fonts which do not */
/* include an encoding. How can we deal with these? */
+#ifdef FT_CONFIG_OPTION_INCREMENTAL
if ( decoder->glyph_names == 0 &&
!face->root.internal->incremental_interface )
+#else
+ if ( decoder->glyph_names == 0 )
+#endif /* FT_CONFIG_OPTION_INCREMENTAL */
{
FT_ERROR(( "t1operator_seac:"
" glyph names table not available in this font\n" ));
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -1278,9 +1278,13 @@
if ( loader->byte_len > 0 )
{
+#ifdef FT_CONFIG_OPTION_INCREMENTAL
/* for the incremental interface, `glyf_offset' is always zero */
if ( !loader->glyf_offset &&
!face->root.internal->incremental_interface )
+#else
+ if ( !loader->glyf_offset )
+#endif /* FT_CONFIG_OPTION_INCREMENTAL */
{
FT_TRACE2(( "no `glyf' table but non-zero `loca' entry\n" ));
error = TT_Err_Invalid_Table;