#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.
84 gchar = cmap->chars + mid;
86 if ( gchar->char_code == char_code )
89 if ( gchar->char_code < char_code )
◆ pfr_cmap_char_next()
pfr_cmap_char_next |
( |
PFR_CMap |
cmap, |
|
|
FT_UInt32 * |
pchar_code |
|
) |
| |
Definition at line 99 of file pfrcmap.c.
103 FT_UInt32 char_code = *pchar_code + 1;
117 gchar = cmap->chars + mid;
141 if ( min < cmap->num_chars )
143 gchar = cmap->chars +
min;
154 *pchar_code = char_code;
◆ pfr_cmap_done()
◆ pfr_cmap_init()
Definition at line 28 of file pfrcmap.c.
37 cmap->num_chars =
face->phy_font.num_chars;
38 cmap->chars =
face->phy_font.chars;
46 for (
n = 1;
n < cmap->num_chars;
n++ )
48 if ( cmap->chars[
n - 1].char_code >= cmap->chars[
n].char_code )
GLsizei const GLvoid * pointer
typedefFT_BEGIN_HEADER struct PFR_FaceRec_ * PFR_Face
GLenum GLuint GLint GLenum face
◆ pfr_cmap_class_rec
Initial value:=
{
}
FT_UInt(* FT_CMap_CharIndexFunc)(FT_CMap cmap, FT_UInt32 char_code)
pfr_cmap_init(PFR_CMap cmap, FT_Pointer pointer)
FT_UInt32 *(* FT_CMap_VariantCharListFunc)(FT_CMap cmap, FT_Memory mem, FT_UInt32 variant_selector)
void(* FT_CMap_DoneFunc)(FT_CMap cmap)
pfr_cmap_char_index(PFR_CMap cmap, FT_UInt32 char_code)
pfr_cmap_char_next(PFR_CMap cmap, FT_UInt32 *pchar_code)
FT_UInt32 *(* FT_CMap_VariantListFunc)(FT_CMap cmap, FT_Memory mem)
pfr_cmap_done(PFR_CMap cmap)
FT_BEGIN_HEADER struct PFR_CMapRec_ PFR_CMapRec
FT_UInt(* FT_CMap_CharNextFunc)(FT_CMap cmap, FT_UInt32 *achar_code)
FT_Error(* FT_CMap_InitFunc)(FT_CMap cmap, FT_Pointer init_data)
FT_UInt32 *(* FT_CMap_CharVariantListFunc)(FT_CMap cmap, FT_Memory mem, FT_UInt32 char_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)
Definition at line 160 of file pfrcmap.c.
Referenced by pfr_face_init().