summaryrefslogtreecommitdiff
path: root/src/psaux
diff options
context:
space:
mode:
Diffstat (limited to 'src/psaux')
-rw-r--r--src/psaux/t1decode.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/psaux/t1decode.c b/src/psaux/t1decode.c
index f4f51a51..fcd7d57d 100644
--- a/src/psaux/t1decode.c
+++ b/src/psaux/t1decode.c
@@ -194,6 +194,9 @@
#endif
FT_Vector left_bearing, advance;
+#ifdef FT_CONFIG_OPTION_INCREMENTAL
+ T1_Face face = (T1_Face)decoder->builder.face;
+#endif
/* seac weirdness */
adx += decoder->builder.left_bearing.x;
@@ -208,17 +211,18 @@
}
#ifdef FT_CONFIG_OPTION_INCREMENTAL
-
- /* the caller must handle the font encoding also */
- bchar_index = bchar;
- achar_index = achar;
-
-#else
-
- bchar_index = t1_lookup_glyph_by_stdcharcode( decoder, bchar );
- achar_index = t1_lookup_glyph_by_stdcharcode( decoder, achar );
-
+ if ( face->root.internal->incremental_interface )
+ {
+ /* the caller must handle the font encoding also */
+ bchar_index = bchar;
+ achar_index = achar;
+ }
+ else
#endif
+ {
+ bchar_index = t1_lookup_glyph_by_stdcharcode( decoder, bchar );
+ achar_index = t1_lookup_glyph_by_stdcharcode( decoder, achar );
+ }
if ( bchar_index < 0 || achar_index < 0 )
{