ReactOS  0.4.14-dev-358-gbef841c
ftcid.c File Reference
#include <ft2build.h>
Include dependency graph for ftcid.c:

Go to the source code of this file.

Functions

 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 92 of file ftcid.c.

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

◆ FT_Get_CID_Is_Internally_CID_Keyed()

FT_Get_CID_Is_Internally_CID_Keyed ( FT_Face  face,
FT_Bool is_cid 
)

Definition at line 66 of file ftcid.c.

68  {
69  FT_Error error = FT_ERR( Invalid_Argument );
70  FT_Bool ic = 0;
71 
72 
73  if ( face )
74  {
75  FT_Service_CID service;
76 
77 
78  FT_FACE_FIND_SERVICE( face, service, CID );
79 
80  if ( service && service->get_is_cid )
81  error = service->get_is_cid( face, &ic);
82  }
83 
84  if ( is_cid )
85  *is_cid = ic;
86 
87  return error;
88  }
int FT_Error
Definition: fttypes.h:300
#define error(str)
Definition: mkdosfs.c:1605
FT_BEGIN_HEADER typedef unsigned char FT_Bool
Definition: fttypes.h:108
#define FT_ERR(e)
Definition: fttypes.h:586
#define FT_FACE_FIND_SERVICE(face, ptr, id)
Definition: ftserv.h:75
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ FT_Get_CID_Registry_Ordering_Supplement()

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

Definition at line 28 of file ftcid.c.

32  {
34  const char* r = NULL;
35  const char* o = NULL;
36  FT_Int s = 0;
37 
38 
39  error = FT_ERR( Invalid_Argument );
40 
41  if ( face )
42  {
43  FT_Service_CID service;
44 
45 
46  FT_FACE_FIND_SERVICE( face, service, CID );
47 
48  if ( service && service->get_ros )
49  error = service->get_ros( face, &r, &o, &s );
50  }
51 
52  if ( registry )
53  *registry = r;
54 
55  if ( ordering )
56  *ordering = o;
57 
58  if ( supplement )
59  *supplement = s;
60 
61  return error;
62  }
int FT_Error
Definition: fttypes.h:300
#define error(str)
Definition: mkdosfs.c:1605
signed int FT_Int
Definition: fttypes.h:220
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
smooth NULL
Definition: ftsmooth.c:416
const char ** registry
Definition: cffdrivr.c:690
#define FT_ERR(e)
Definition: fttypes.h:586
GLdouble s
Definition: gl.h:2039
#define FT_FACE_FIND_SERVICE(face, ptr, id)
Definition: ftserv.h:75
const char const char FT_Int * supplement
Definition: cffdrivr.c:693
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
const char const char ** ordering
Definition: cffdrivr.c:690