#include <ft2build.h>#include "ftcmanag.h"#include "ftccback.h"#include "ftcerror.h"Go to the source code of this file.
| #define FTC_CMAP_HASH | ( | faceid, | |||
| index, | |||||
| charcode | ) |
Value:
( FTC_FACE_ID_HASH( faceid ) + 211 * (index) + \ ( (charcode) / FTC_CMAP_INDICES_MAX ) )
Definition at line 88 of file ftccmap.c.
Referenced by FTC_CMapCache_Lookup().
| #define FTC_CMAP_INDICES_MAX 128 |
Definition at line 85 of file ftccmap.c.
Referenced by ftc_cmap_node_compare(), ftc_cmap_node_new(), and FTC_CMapCache_Lookup().
| #define FTC_CMAP_NODE | ( | x | ) | ( (FTC_CMapNode)( x ) ) |
| #define FTC_CMAP_QUERY | ( | x | ) | ((FTC_CMapQuery)(x)) |
| #define FTC_CMAP_UNKNOWN ( (FT_UInt16)-1 ) |
Definition at line 122 of file ftccmap.c.
Referenced by ftc_cmap_node_new(), and FTC_CMapCache_Lookup().
| typedef struct FTC_CMapNodeRec_ * FTC_CMapNode |
| typedef struct FTC_CMapNodeRec_ FTC_CMapNodeRec |
| typedef struct FTC_CMapQueryRec_ * FTC_CMapQuery |
| typedef struct FTC_CMapQueryRec_ FTC_CMapQueryRec |
| ftc_cmap_node_compare | ( | FTC_Node | ftcnode, | |
| FT_Pointer | ftcquery, | |||
| FTC_Cache | cache | |||
| ) |
Definition at line 190 of file ftccmap.c.
References FTC_CMapQueryRec_::char_code, FTC_CMapNodeRec_::cmap_index, FTC_CMapQueryRec_::cmap_index, FTC_CMapQueryRec_::face_id, FTC_CMapNodeRec_::face_id, FTC_CMapNodeRec_::first, FT_BOOL, FT_UNUSED, and FTC_CMAP_INDICES_MAX.
Referenced by FTC_CMapCache_Lookup().
| ftc_cmap_node_new | ( | FTC_Node * | ftcanode, | |
| FT_Pointer | ftcquery, | |||
| FTC_Cache | cache | |||
| ) |
Definition at line 148 of file ftccmap.c.
References FTC_CMapQueryRec_::char_code, FTC_CMapNodeRec_::cmap_index, FTC_CMapQueryRec_::cmap_index, error, FTC_CMapQueryRec_::face_id, FTC_CMapNodeRec_::face_id, FTC_CMapNodeRec_::first, FT_NEW, FTC_CMAP_INDICES_MAX, FTC_CMAP_UNKNOWN, and FTC_CMapNodeRec_::indices.
| ftc_cmap_node_remove_faceid | ( | FTC_Node | ftcnode, | |
| FT_Pointer | ftcface_id, | |||
| FTC_Cache | cache | |||
| ) |
Definition at line 213 of file ftccmap.c.
References FTC_CMapNodeRec_::face_id, FT_BOOL, FT_UNUSED, and FTC_FaceID.
| FTC_CMapCache_Lookup | ( | FTC_CMapCache | cmap_cache, | |
| FTC_FaceID | face_id, | |||
| FT_Int | cmap_index, | |||
| FT_UInt32 | char_code | |||
| ) |
Definition at line 279 of file ftccmap.c.
References FTC_CMapQueryRec_::char_code, FTC_CMapQueryRec_::cmap_index, error, FTC_CMapQueryRec_::face_id, FT_ASSERT, FT_Get_Char_Index(), FT_Select_Charmap(), FT_Set_Charmap(), FT_TRACE0, FTC_CACHE, FTC_CACHE_LOOKUP_CMP, FTC_CMAP_HASH, FTC_CMAP_INDICES_MAX, FTC_CMAP_NODE, ftc_cmap_node_compare(), FTC_CMAP_UNKNOWN, FTC_Manager_LookupFace(), hash, and NULL.
| FTC_CMapCache_New | ( | FTC_Manager | manager, | |
| FTC_CMapCache * | acache | |||
| ) |
Definition at line 252 of file ftccmap.c.
References FTC_CACHE_P, ftc_cmap_cache_class, and FTC_Manager_RegisterCache().
| FT_CALLBACK_TABLE_DEF const FTC_CacheClassRec ftc_cmap_cache_class |
Initial value:
{
ftc_cmap_node_new,
ftc_cmap_node_weight,
ftc_cmap_node_compare,
ftc_cmap_node_remove_faceid,
ftc_cmap_node_free,
sizeof ( FTC_CacheRec ),
ftc_cache_init,
ftc_cache_done,
}
Definition at line 235 of file ftccmap.c.
Referenced by FTC_CMapCache_New().
1.5.1