shithub: freetype+ttf2subf

Download patch

ref: 04a7858c611c55bbbd04f32a480c6fe5f279630e
parent: 7daf801f8f54c11cf96197f40affbc844e8b6942
author: Ralph Giles <[email protected]>
date: Thu Apr 30 16:32:31 EDT 2009

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.

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/psaux/t1decode.c
+++ b/src/psaux/t1decode.c
@@ -206,8 +206,18 @@
       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 )
     {