ReactOS 0.4.15-dev-8349-g6f277e9
cidriver.c File Reference
#include <ft2build.h>
#include "cidriver.h"
#include "cidgload.h"
#include "ciderrs.h"
Include dependency graph for cidriver.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_ciddriver
 

Functions

static const charcid_get_postscript_name (CID_Face face)
 
static FT_Error cid_ps_get_font_info (FT_Face face, PS_FontInfoRec *afont_info)
 
static FT_Error cid_ps_get_font_extra (FT_Face face, PS_FontExtraRec *afont_extra)
 
static FT_Error cid_get_ros (CID_Face face, const char **registry, const char **ordering, FT_Int *supplement)
 
static FT_Error cid_get_is_cid (CID_Face face, FT_Bool *is_cid)
 
static FT_Error cid_get_cid_from_glyph_index (CID_Face face, FT_UInt glyph_index, FT_UInt *cid)
 
 FT_DEFINE_SERVICE_PROPERTIESREC (cid_service_properties,(FT_Properties_SetFunc) ps_property_set,(FT_Properties_GetFunc) ps_property_get) static const FT_ServiceDescRec cid_services[]
 
 cid_get_interface (FT_Module module, const char *cid_interface)
 

Variables

static const FT_Service_PsFontNameRec cid_service_ps_name
 
static const FT_Service_PsInfoRec cid_service_ps_info
 
static const FT_Service_CIDRec cid_service_cid_info
 
FT_CALLBACK_TABLE_DEF const FT_Driver_ClassRec t1cid_driver_class
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   trace_ciddriver

Definition at line 44 of file cidriver.c.

Function Documentation

◆ cid_get_cid_from_glyph_index()

static FT_Error cid_get_cid_from_glyph_index ( CID_Face  face,
FT_UInt  glyph_index,
FT_UInt cid 
)
static

Definition at line 149 of file cidriver.c.

152 {
154 FT_UNUSED( face );
155
156
157 if ( cid )
158 *cid = glyph_index; /* identity mapping */
159
160 return error;
161 }
return FT_Err_Ok
Definition: ftbbox.c:511
#define FT_UNUSED(arg)
Definition: ftconfig.h:101
int FT_Error
Definition: fttypes.h:300
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
#define error(str)
Definition: mkdosfs.c:1605
static TfClientId cid

◆ cid_get_interface()

cid_get_interface ( FT_Module  module,
const char cid_interface 
)

Definition at line 204 of file cidriver.c.

206 {
207 FT_UNUSED( module );
208
209 return ft_service_list_lookup( cid_services, cid_interface );
210 }
ft_service_list_lookup(FT_ServiceDesc service_descriptors, const char *service_id)
Definition: ftobjs.c:98

◆ cid_get_is_cid()

static FT_Error cid_get_is_cid ( CID_Face  face,
FT_Bool is_cid 
)
static

Definition at line 134 of file cidriver.c.

136 {
138 FT_UNUSED( face );
139
140
141 if ( is_cid )
142 *is_cid = 1; /* cid driver is only used for CID keyed fonts */
143
144 return error;
145 }

◆ cid_get_postscript_name()

static const char * cid_get_postscript_name ( CID_Face  face)
static

Definition at line 53 of file cidriver.c.

54 {
55 const char* result = face->cid.cid_font_name;
56
57
58 if ( result && result[0] == '/' )
59 result++;
60
61 return result;
62 }
GLuint64EXT * result
Definition: glext.h:11304

◆ cid_get_ros()

static FT_Error cid_get_ros ( CID_Face  face,
const char **  registry,
const char **  ordering,
FT_Int supplement 
)
static

Definition at line 112 of file cidriver.c.

116 {
117 CID_FaceInfo cid = &face->cid;
118
119
120 if ( registry )
121 *registry = cid->registry;
122
123 if ( ordering )
124 *ordering = cid->ordering;
125
126 if ( supplement )
127 *supplement = cid->supplement;
128
129 return FT_Err_Ok;
130 }
const char const char FT_Int * supplement
Definition: cffdrivr.c:693
const char ** registry
Definition: cffdrivr.c:690
static enum @953 ordering

◆ cid_ps_get_font_extra()

static FT_Error cid_ps_get_font_extra ( FT_Face  face,
PS_FontExtraRec afont_extra 
)
static

Definition at line 86 of file cidriver.c.

88 {
89 *afont_extra = ((CID_Face)face)->font_extra;
90
91 return FT_Err_Ok;
92 }
struct CID_FaceRec_ * CID_Face
Definition: t1types.h:197

◆ cid_ps_get_font_info()

static FT_Error cid_ps_get_font_info ( FT_Face  face,
PS_FontInfoRec afont_info 
)
static

Definition at line 77 of file cidriver.c.

79 {
80 *afont_info = ((CID_Face)face)->cid.font_info;
81
82 return FT_Err_Ok;
83 }

◆ FT_DEFINE_SERVICE_PROPERTIESREC()

FT_DEFINE_SERVICE_PROPERTIESREC ( cid_service_properties  ,
(FT_Properties_SetFunc ps_property_set,
(FT_Properties_GetFunc ps_property_get 
) const

Variable Documentation

◆ cid_service_cid_info

const FT_Service_CIDRec cid_service_cid_info
static
Initial value:
=
{
}
static FT_Error cid_get_cid_from_glyph_index(CID_Face face, FT_UInt glyph_index, FT_UInt *cid)
Definition: cidriver.c:149
static FT_Error cid_get_ros(CID_Face face, const char **registry, const char **ordering, FT_Int *supplement)
Definition: cidriver.c:112
static FT_Error cid_get_is_cid(CID_Face face, FT_Bool *is_cid)
Definition: cidriver.c:134
FT_Error(* FT_CID_GetCIDFromGlyphIndexFunc)(FT_Face face, FT_UInt glyph_index, FT_UInt *cid)
Definition: svcid.h:39
FT_Error(* FT_CID_GetIsInternallyCIDKeyedFunc)(FT_Face face, FT_Bool *is_cid)
Definition: svcid.h:36
FT_Error(* FT_CID_GetRegistryOrderingSupplementFunc)(FT_Face face, const char **registry, const char **ordering, FT_Int *supplement)
Definition: svcid.h:31

Definition at line 164 of file cidriver.c.

Referenced by FT_DEFINE_SERVICE_PROPERTIESREC().

◆ cid_service_ps_info

const FT_Service_PsInfoRec cid_service_ps_info
static
Initial value:
=
{
}
static FT_Error cid_ps_get_font_extra(FT_Face face, PS_FontExtraRec *afont_extra)
Definition: cidriver.c:86
static FT_Error cid_ps_get_font_info(FT_Face face, PS_FontInfoRec *afont_info)
Definition: cidriver.c:77
#define NULL
Definition: types.h:112
FT_Long(* PS_GetFontValueFunc)(FT_Face face, PS_Dict_Keys key, FT_UInt idx, void *value, FT_Long value_len)
Definition: svpsinfo.h:48
FT_Error(* PS_GetFontInfoFunc)(FT_Face face, PS_FontInfoRec *afont_info)
Definition: svpsinfo.h:33
FT_Int(* PS_HasGlyphNamesFunc)(FT_Face face)
Definition: svpsinfo.h:41
FT_Error(* PS_GetFontExtraFunc)(FT_Face face, PS_FontExtraRec *afont_extra)
Definition: svpsinfo.h:37
FT_Error(* PS_GetFontPrivateFunc)(FT_Face face, PS_PrivateRec *afont_private)
Definition: svpsinfo.h:44

Definition at line 94 of file cidriver.c.

Referenced by FT_DEFINE_SERVICE_PROPERTIESREC().

◆ cid_service_ps_name

const FT_Service_PsFontNameRec cid_service_ps_name
static
Initial value:
=
{
}
static const char * cid_get_postscript_name(CID_Face face)
Definition: cidriver.c:53
const char *(* FT_PsName_GetFunc)(FT_Face face)
Definition: svpostnm.h:41

Definition at line 65 of file cidriver.c.

Referenced by FT_DEFINE_SERVICE_PROPERTIESREC().

◆ t1cid_driver_class

Definition at line 215 of file cidriver.c.