summaryrefslogtreecommitdiff
path: root/src/cid/cidriver.c
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2009-03-03 13:28:59 +0000
committerDavid Turner <david@freetype.org>2009-03-03 13:28:59 +0000
commit01ca4da20375cf64f7e6b8c22c038042cf849502 (patch)
treee3ff9f0ca1237256015e64083363faab7aed3a6f /src/cid/cidriver.c
parent7585683c4a93a1f08ad3289d6564fda80818b2b4 (diff)
downloadfreetype2-01ca4da20375cf64f7e6b8c22c038042cf849502.tar.gz
Remove ABI-breaking field in public PS_InfoFontRec definition.
Instead, we define a new internal PS_FontExtraRec structure to hold the additionnal field, then place it in various internal positions of the corresponding FT_Face derived objects.
Diffstat (limited to 'src/cid/cidriver.c')
-rw-r--r--src/cid/cidriver.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cid/cidriver.c b/src/cid/cidriver.c
index 85ee6cf19..42bd298db 100644
--- a/src/cid/cidriver.c
+++ b/src/cid/cidriver.c
@@ -77,10 +77,18 @@
return 0;
}
+ static FT_Error
+ cid_ps_get_font_extra( FT_Face face,
+ PS_FontExtraRec* afont_extra )
+ {
+ *afont_extra = ((CID_Face)face)->font_extra;
+ return 0;
+ }
static const FT_Service_PsInfoRec cid_service_ps_info =
{
(PS_GetFontInfoFunc) cid_ps_get_font_info,
+ (PS_GetFontExtraFunc) cid_ps_get_font_extra,
(PS_HasGlyphNamesFunc) NULL, /* unsupported with CID fonts */
(PS_GetFontPrivateFunc)NULL /* unsupported */
};