Add support for postscript name service to CFF driver.
* src/cff/cffdrivr.c: Include FT_SERVICE_POSTSCRIPT_NAME_H. (cff_get_ps_name): New function. (cff_service_ps_name): New service structure. (cff_services): Register it.
This commit is contained in:
parent
d21fe6e5d6
commit
2f10956744
|
@ -1,3 +1,12 @@
|
|||
2007-07-11 Derek Clegg <dclegg@apple.com>
|
||||
|
||||
Add support for postscript name service to CFF driver.
|
||||
|
||||
* src/cff/cffdrivr.c: Include FT_SERVICE_POSTSCRIPT_NAME_H.
|
||||
(cff_get_ps_name): New function.
|
||||
(cff_service_ps_name): New service structure.
|
||||
(cff_services): Register it.
|
||||
|
||||
2007-07-07 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/base/ftglyph.c (FT_Glyph_Copy): Fix initialization of
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include FT_TRUETYPE_IDS_H
|
||||
#include FT_SERVICE_POSTSCRIPT_CMAPS_H
|
||||
#include FT_SERVICE_POSTSCRIPT_INFO_H
|
||||
#include FT_SERVICE_POSTSCRIPT_NAME_H
|
||||
#include FT_SERVICE_TT_CMAP_H
|
||||
|
||||
#include "cffdrivr.h"
|
||||
|
@ -353,6 +354,27 @@
|
|||
};
|
||||
|
||||
|
||||
/*
|
||||
* POSTSCRIPT NAME SERVICE
|
||||
*
|
||||
*/
|
||||
|
||||
static const char*
|
||||
cff_get_ps_name( CFF_Face face )
|
||||
{
|
||||
CFF_Font cff = (CFF_Font)face->extra.data;
|
||||
|
||||
|
||||
return (const char*)cff->font_name;
|
||||
}
|
||||
|
||||
|
||||
static const FT_Service_PsFontNameRec cff_service_ps_name =
|
||||
{
|
||||
(FT_PsName_GetFunc)cff_get_ps_name
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* TT CMAP INFO
|
||||
*
|
||||
|
@ -412,12 +434,13 @@
|
|||
|
||||
static const FT_ServiceDescRec cff_services[] =
|
||||
{
|
||||
{ FT_SERVICE_ID_XF86_NAME, FT_XF86_FORMAT_CFF },
|
||||
{ FT_SERVICE_ID_POSTSCRIPT_INFO, &cff_service_ps_info },
|
||||
{ FT_SERVICE_ID_XF86_NAME, FT_XF86_FORMAT_CFF },
|
||||
{ FT_SERVICE_ID_POSTSCRIPT_INFO, &cff_service_ps_info },
|
||||
{ FT_SERVICE_ID_POSTSCRIPT_FONT_NAME, &cff_service_ps_name },
|
||||
#ifndef FT_CONFIG_OPTION_NO_GLYPH_NAMES
|
||||
{ FT_SERVICE_ID_GLYPH_DICT, &cff_service_glyph_dict },
|
||||
{ FT_SERVICE_ID_GLYPH_DICT, &cff_service_glyph_dict },
|
||||
#endif
|
||||
{ FT_SERVICE_ID_TT_CMAP, &cff_service_get_cmap_info },
|
||||
{ FT_SERVICE_ID_TT_CMAP, &cff_service_get_cmap_info },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue