diff options
author | Ewald Hew <ewaldhew@gmail.com> | 2017-07-23 20:26:13 +0800 |
---|---|---|
committer | Ewald Hew <ewaldhew@gmail.com> | 2017-08-28 08:29:07 +0800 |
commit | e8d9b1a782a4b833955bcd184952d975a730bfad (patch) | |
tree | 5dc7eb3c5310e4c2309a1a7cf34d167ef96c5bb1 /include | |
parent | daed878ee254f617b03b4f2500ceabff7a8809e1 (diff) | |
download | freetype2-e8d9b1a782a4b833955bcd184952d975a730bfad.tar.gz |
Allow type1 module to use the Adobe engine.
Add the callback and some conditionals to switch between the two
engines.
* include/freetype/internal/psaux.h (T1_Decoder_FuncsRec): Change
function declarations.
* src/psaux/psauxmod.c: Register the callbacks.
* src/psaux/psobjs.c: Add conditionals for number conversion.
* src/type1/t1gload.c: Add code to choose which renderer to use.
* src/cid/cidgload.c: Update call.
* src/base/ftobjs.c, src/psaux/psobjs.c, src/type1/t1gload.c: Update
includes.
Diffstat (limited to 'include')
-rw-r--r-- | include/freetype/internal/psaux.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/freetype/internal/psaux.h b/include/freetype/internal/psaux.h index 24c02e779..a8469f722 100644 --- a/include/freetype/internal/psaux.h +++ b/include/freetype/internal/psaux.h @@ -872,9 +872,15 @@ FT_BEGIN_HEADER (*done)( T1_Decoder decoder ); FT_Error - (*parse_charstrings)( T1_Decoder decoder, - FT_Byte* base, - FT_UInt len ); + (*parse_charstrings_old)( T1_Decoder decoder, + FT_Byte* base, + FT_UInt len ); + + FT_Error + (*parse_charstrings)( PS_Decoder* decoder, + FT_Byte* charstring_base, + FT_ULong charstring_len ); + } T1_Decoder_FuncsRec; |