diff options
author | Ralph Giles <giles@ghostscript.com> | 2009-04-30 20:32:31 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2009-04-30 20:32:31 +0200 |
commit | 04a7858c611c55bbbd04f32a480c6fe5f279630e (patch) | |
tree | 79132fee62de7f431058aa5af2f403c146197ec4 /src | |
parent | 7daf801f8f54c11cf96197f40affbc844e8b6942 (diff) | |
download | freetype2-04a7858c611c55bbbd04f32a480c6fe5f279630e.tar.gz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/psaux/t1decode.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/psaux/t1decode.c b/src/psaux/t1decode.c index bda2324d7..4ccf30f10 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:" )); |