#include <ft2build.h>
#include "pfrcmap.h"
#include "pfrobjs.h"
#include "pfrerror.h"
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 70 of file pfrcmap.c.
72 {
75
76
78 {
81
82
84 gchar = cmap->chars + mid;
85
87 return mid + 1;
88
91 else
93 }
94 return 0;
95 }
◆ pfr_cmap_char_next()
pfr_cmap_char_next |
( |
PFR_CMap |
cmap, |
|
|
FT_UInt32 * |
pchar_code |
|
) |
| |
Definition at line 99 of file pfrcmap.c.
101 {
103 FT_UInt32 char_code = *pchar_code + 1;
104
105
107 {
112
113
115 {
117 gchar = cmap->chars + mid;
118
120 {
123 {
126 }
127
128 char_code++;
130 }
131
134 else
136 }
137
138
139 char_code = 0;
140
141 if ( min < cmap->num_chars )
142 {
143 gchar = cmap->chars +
min;
146 {
149 }
150 }
151 }
152
154 *pchar_code = char_code;
156 }
◆ pfr_cmap_done()
Definition at line 62 of file pfrcmap.c.
63 {
65 cmap->num_chars = 0;
66 }
◆ pfr_cmap_init()
Definition at line 28 of file pfrcmap.c.
30 {
33
35
36
37 cmap->num_chars =
face->phy_font.num_chars;
38 cmap->chars =
face->phy_font.chars;
39
40
41
42 {
44
45
46 for (
n = 1;
n < cmap->num_chars;
n++ )
47 {
48 if ( cmap->chars[
n - 1].char_code >= cmap->chars[
n].char_code )
49 {
52 }
53 }
54 }
55
58 }
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_Bool(* FT_CMap_CharVarIsDefaultFunc)(FT_CMap 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_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 160 of file pfrcmap.c.
Referenced by pfr_face_init().