From 6eb03f8f5a126c3716f557bd2e8e7ae0d6f93837 Mon Sep 17 00:00:00 2001 From: Ewald Hew Date: Mon, 25 Sep 2017 06:49:41 +0200 Subject: Add missing objects (2/2). Synthesize a `SubFont' object for Type 1 fonts. This is used in the interpreter to access Private dict data, which are stored in different places for Type 1 and CFF. This allows the same data to be used in either mode. * src/psaux/psobjs.c (t1_make_subfont): New procedure to copy required values to a dummy `CFF_SubFont' object. This is similar to `cff_make_private_dict'. * src/psaux/psobjs.h: Add the new declaration. * include/freetype/internal/psaux.h, src/psaux/psauxmod.c: Ditto. Add this to the PSAux Service for future use with CID fonts. * src/type1/t1gload.c: Include FT_INTERNAL_CFF_TYPES_H. (T1_Parse_Glyph_And_Get_Char_String): Add the call. --- include/freetype/internal/psaux.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/freetype/internal/psaux.h') diff --git a/include/freetype/internal/psaux.h b/include/freetype/internal/psaux.h index b28392bed..9748368db 100644 --- a/include/freetype/internal/psaux.h +++ b/include/freetype/internal/psaux.h @@ -1290,6 +1290,10 @@ FT_BEGIN_HEADER FT_Bool is_t1, PS_Decoder* ps_decoder ); + void + (*t1_make_subfont)( T1_Face face, + CFF_SubFont subfont ); + T1_CMap_Classes t1_cmap_classes; -- cgit v1.2.1