ReactOS 0.4.16-dev-2332-g4cba65d
ftcid.h File Reference
Include dependency graph for ftcid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

FT_BEGIN_HEADER FT_Get_CID_Registry_Ordering_Supplement (FT_Face face, const char **registry, const char **ordering, FT_Int *supplement)
 
 FT_Get_CID_Is_Internally_CID_Keyed (FT_Face face, FT_Bool *is_cid)
 
 FT_Get_CID_From_Glyph_Index (FT_Face face, FT_UInt glyph_index, FT_UInt *cid)
 

Function Documentation

◆ FT_Get_CID_From_Glyph_Index()

FT_Get_CID_From_Glyph_Index ( FT_Face  face,
FT_UInt  glyph_index,
FT_UInt cid 
)

Definition at line 91 of file ftcid.c.

94 {
95 FT_Error error = FT_ERR( Invalid_Argument );
96 FT_UInt c = 0;
97
98
99 if ( face )
100 {
101 FT_Service_CID service;
102
103
104 FT_FACE_FIND_SERVICE( face, service, CID );
105
106 if ( service && service->get_cid_from_glyph_index )
107 error = service->get_cid_from_glyph_index( face, glyph_index, &c);
108 }
109
110 if ( cid )
111 *cid = c;
112
113 return error;
114 }
#define FT_FACE_FIND_SERVICE(face, ptr, id)
Definition: ftserv.h:77
int FT_Error
Definition: fttypes.h:299
#define FT_ERR(e)
Definition: fttypes.h:599
unsigned int FT_UInt
Definition: fttypes.h:231
const GLubyte * c
Definition: glext.h:8905
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
static TfClientId cid
#define c
Definition: ke_i.h:80
#define error(str)
Definition: mkdosfs.c:1605

◆ FT_Get_CID_Is_Internally_CID_Keyed()

FT_Get_CID_Is_Internally_CID_Keyed ( FT_Face  face,
FT_Bool is_cid 
)

Definition at line 65 of file ftcid.c.

67 {
68 FT_Error error = FT_ERR( Invalid_Argument );
69 FT_Bool ic = 0;
70
71
72 if ( face )
73 {
74 FT_Service_CID service;
75
76
77 FT_FACE_FIND_SERVICE( face, service, CID );
78
79 if ( service && service->get_is_cid )
80 error = service->get_is_cid( face, &ic);
81 }
82
83 if ( is_cid )
84 *is_cid = ic;
85
86 return error;
87 }
FT_BEGIN_HEADER typedef unsigned char FT_Bool
Definition: fttypes.h:108

◆ FT_Get_CID_Registry_Ordering_Supplement()

FT_BEGIN_HEADER FT_Get_CID_Registry_Ordering_Supplement ( FT_Face  face,
const char **  registry,
const char **  ordering,
FT_Int supplement 
)

Definition at line 27 of file ftcid.c.

31 {
33 const char* r = NULL;
34 const char* o = NULL;
35 FT_Int s = 0;
36
37
38 error = FT_ERR( Invalid_Argument );
39
40 if ( face )
41 {
42 FT_Service_CID service;
43
44
45 FT_FACE_FIND_SERVICE( face, service, CID );
46
47 if ( service && service->get_ros )
48 error = service->get_ros( face, &r, &o, &s );
49 }
50
51 if ( registry )
52 *registry = r;
53
54 if ( ordering )
55 *ordering = o;
56
57 if ( supplement )
58 *supplement = s;
59
60 return error;
61 }
const char const char FT_Int * supplement
Definition: cffdrivr.c:699
const char ** registry
Definition: cffdrivr.c:696
#define NULL
Definition: types.h:112
signed int FT_Int
Definition: fttypes.h:220
static enum @1042 ordering
GLdouble s
Definition: gl.h:2039
GLdouble GLdouble GLdouble r
Definition: gl.h:2055