diff options
author | Werner Lemberg <wl@gnu.org> | 2004-11-12 07:02:45 +0000 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2004-11-12 07:02:45 +0000 |
commit | 3605e470c1c846715d2383e84ac7330660ccdf56 (patch) | |
tree | daa1b77843695f324f2fa228415835ba3ca79058 /include/freetype/t1tables.h | |
parent | 023a4bf3bee24599ae0760042685f18624860641 (diff) | |
download | freetype2-3605e470c1c846715d2383e84ac7330660ccdf56.tar.gz |
Add new function FT_Get_PS_Font_Private().
* include/freetype/internal/services/svpsinfo.h
(PS_GetFontPrivateFunc): New service function.
* include/freetype/t1tables.h, src/base/fttype1.c
(FT_Get_PS_Font_Private): New function.
* src/type1/t1driver.c (t1_ps_get_font_private): New function.
(t1_service_ps_info): Updated.
* src/cff/cffdrivr.c (cff_service_ps_info): Updated.
* src/cid/cidriver.c (cid_service_ps_info): Updated.
* src/type42/t42drivr.c (t42_ps_get_font_private): New function.
(t42_service_ps_info): Updated.
* src/type42/t42parse.c (t42_parse_dict): Remove compiler warning.
Diffstat (limited to 'include/freetype/t1tables.h')
-rw-r--r-- | include/freetype/t1tables.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/freetype/t1tables.h b/include/freetype/t1tables.h index 60938aa83..5ae12b826 100644 --- a/include/freetype/t1tables.h +++ b/include/freetype/t1tables.h @@ -387,6 +387,38 @@ FT_BEGIN_HEADER FT_Get_PS_Font_Info( FT_Face face, PS_FontInfoRec *afont_info ); + + /************************************************************************ + * + * @function: + * FT_Get_PS_Font_Private + * + * @description: + * Retrieve the @PS_PrivateRec structure corresponding to a given + * Postscript font. + * + * @input: + * face :: + * Postscript face handle. + * + * @output: + * afont_private :: + * Output private dictionary structure pointer. + * + * @return: + * FreeType error code. 0 means success. + * + * @note: + * The string pointers within the font info structure are owned by + * the face and don't need to be freed by the caller. + * + * If the font's format is not Postscript-based, this function will + * return the FT_Err_Invalid_Argument error code. + */ + FT_EXPORT( FT_Error ) + FT_Get_PS_Font_Private( FT_Face face, + PS_PrivateRec *afont_private ); + /* */ |