Commit 04a7858c611c55bbbd04f32a480c6fe5f279630e

Ralph Giles 2009-04-30T20:32:31

Make `seac' operator work correctly with incremental interface. SEAC (Single Encoding Accented Characters) are composed of (basically) two indices specifying two other glyphs, and a movement to position the accent properly with respect to the main glyph. To make it work with the incremental interface we now demand that the caller handles the encoding by itself.

diff --git a/src/psaux/t1decode.c b/src/psaux/t1decode.c
index bda2324..4ccf30f 100644
--- a/src/psaux/t1decode.c
+++ b/src/psaux/t1decode.c
@@ -206,9 +206,19 @@
       return PSaux_Err_Syntax_Error;
     }
 
+#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 );
 
+#endif
+
     if ( bchar_index < 0 || achar_index < 0 )
     {
       FT_ERROR(( "t1operator_seac:" ));