Go to the source code of this file.
◆ pfr_cmap_char_index()
| pfr_cmap_char_index |
( |
PFR_CMap |
cmap, |
|
|
FT_UInt32 |
char_code |
|
) |
| |
Definition at line 69 of file pfrcmap.c.
71 {
74
75
77 {
80
81
83 gchar = cmap->chars + mid;
84
86 return mid + 1;
87
90 else
92 }
93 return 0;
94 }
◆ pfr_cmap_char_next()
| pfr_cmap_char_next |
( |
PFR_CMap |
cmap, |
|
|
FT_UInt32 * |
pchar_code |
|
) |
| |
Definition at line 98 of file pfrcmap.c.
100 {
102 FT_UInt32 char_code = *pchar_code + 1;
103
104
106 {
111
112
114 {
116 gchar = cmap->chars + mid;
117
119 {
122 {
125 }
126
127 char_code++;
129 }
130
133 else
135 }
136
137
138 char_code = 0;
139
140 if ( min < cmap->num_chars )
141 {
142 gchar = cmap->chars +
min;
145 {
148 }
149 }
150 }
151
153 *pchar_code = char_code;
155 }
◆ pfr_cmap_done()
Definition at line 61 of file pfrcmap.c.
62 {
64 cmap->num_chars = 0;
65 }
◆ pfr_cmap_init()
Definition at line 27 of file pfrcmap.c.
29 {
32
34
35
36 cmap->num_chars =
face->phy_font.num_chars;
37 cmap->chars =
face->phy_font.chars;
38
39
40
41 {
43
44
45 for (
n = 1;
n < cmap->num_chars;
n++ )
46 {
47 if ( cmap->chars[
n - 1].char_code >= cmap->chars[
n].char_code )
48 {
51 }
52 }
53 }
54
57 }
GLsizei const GLvoid * pointer
GLenum GLuint GLint GLenum face
typedefFT_BEGIN_HEADER struct PFR_FaceRec_ * PFR_Face
◆ pfr_cmap_class_rec
Initial value:=
{
}
FT_UInt(* FT_CMap_CharNextFunc)(FT_CMap cmap, FT_UInt32 *achar_code)
FT_UInt(* FT_CMap_CharVarIndexFunc)(FT_CMap cmap, FT_CMap unicode_cmap, FT_UInt32 char_code, FT_UInt32 variant_selector)
FT_UInt32 *(* FT_CMap_CharVariantListFunc)(FT_CMap cmap, FT_Memory mem, FT_UInt32 char_code)
FT_Int(* FT_CMap_CharVarIsDefaultFunc)(FT_CMap cmap, FT_UInt32 char_code, FT_UInt32 variant_selector)
FT_UInt32 *(* FT_CMap_VariantCharListFunc)(FT_CMap cmap, FT_Memory mem, FT_UInt32 variant_selector)
FT_UInt32 *(* FT_CMap_VariantListFunc)(FT_CMap cmap, FT_Memory mem)
FT_Error(* FT_CMap_InitFunc)(FT_CMap cmap, FT_Pointer init_data)
void(* FT_CMap_DoneFunc)(FT_CMap cmap)
FT_UInt(* FT_CMap_CharIndexFunc)(FT_CMap cmap, FT_UInt32 char_code)
pfr_cmap_init(PFR_CMap cmap, FT_Pointer pointer)
pfr_cmap_done(PFR_CMap cmap)
pfr_cmap_char_next(PFR_CMap cmap, FT_UInt32 *pchar_code)
pfr_cmap_char_index(PFR_CMap cmap, FT_UInt32 char_code)
FT_BEGIN_HEADER struct PFR_CMapRec_ PFR_CMapRec
Definition at line 159 of file pfrcmap.c.
Referenced by pfr_face_init().