ReactOS 0.4.16-dev-2332-g4cba65d
ttcmap.h
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * ttcmap.h
4 *
5 * TrueType character mapping table (cmap) support (specification).
6 *
7 * Copyright (C) 2002-2020 by
8 * David Turner, Robert Wilhelm, and Werner Lemberg.
9 *
10 * This file is part of the FreeType project, and may only be used,
11 * modified, and distributed under the terms of the FreeType project
12 * license, LICENSE.TXT. By continuing to use, modify, or distribute
13 * this file you indicate that you have read the license and
14 * understand and accept it fully.
15 *
16 */
17
18
19#ifndef TTCMAP_H_
20#define TTCMAP_H_
21
22
26
28
29
30#define TT_CMAP_FLAG_UNSORTED 1
31#define TT_CMAP_FLAG_OVERLAPPING 2
32
33 typedef struct TT_CMapRec_
34 {
36 FT_Byte* data; /* pointer to in-memory cmap table */
37 FT_Int flags; /* for format 4 only */
38
40
41 typedef const struct TT_CMap_ClassRec_* TT_CMap_Class;
42
43
44 typedef FT_Error
47
48 typedef struct TT_CMap_ClassRec_
49 {
54
56
57
58#define FT_DEFINE_TT_CMAP( class_, \
59 size_, \
60 init_, \
61 done_, \
62 char_index_, \
63 char_next_, \
64 char_var_index_, \
65 char_var_default_, \
66 variant_list_, \
67 charvariant_list_, \
68 variantchar_list_, \
69 format_, \
70 validate_, \
71 get_cmap_info_ ) \
72 FT_CALLBACK_TABLE_DEF \
73 const TT_CMap_ClassRec class_ = \
74 { \
75 { size_, \
76 init_, \
77 done_, \
78 char_index_, \
79 char_next_, \
80 char_var_index_, \
81 char_var_default_, \
82 variant_list_, \
83 charvariant_list_, \
84 variantchar_list_ \
85 }, \
86 \
87 format_, \
88 validate_, \
89 get_cmap_info_ \
90 };
91
92
93#undef TTCMAPCITEM
94#define TTCMAPCITEM( a ) FT_CALLBACK_TABLE const TT_CMap_ClassRec a;
95#include "ttcmapc.h"
96
97
98 typedef struct TT_ValidatorRec_
99 {
102
104
105
106#define TT_VALIDATOR( x ) ( (TT_Validator)( x ) )
107#define TT_VALID_GLYPH_COUNT( x ) TT_VALIDATOR( x )->num_glyphs
108
109
111
114
115 /* used in tt-cmaps service */
119
120
122
123#endif /* TTCMAP_H_ */
124
125
126/* END */
TT_CMapInfo * cmap_info
Definition: cffdrivr.c:655
#define FT_LOCAL(x)
#define FT_CALLBACK_TABLE
#define FT_END_HEADER
Definition: ftheader.h:57
#define FT_BEGIN_HEADER
Definition: ftheader.h:37
unsigned char FT_Byte
Definition: fttypes.h:154
int FT_Error
Definition: fttypes.h:299
unsigned int FT_UInt
Definition: fttypes.h:231
signed int FT_Int
Definition: fttypes.h:220
typedefFT_BEGIN_HEADER struct FT_ValidatorRec_ volatile * FT_Validator
Definition: ftvalid.h:43
BOOLEAN valid
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
FT_CMapRec cmap
Definition: ttcmap.h:35
FT_Int flags
Definition: ttcmap.h:37
FT_Byte * data
Definition: ttcmap.h:36
FT_UInt format
Definition: ttcmap.h:51
TT_CMap_ValidateFunc validate
Definition: ttcmap.h:52
FT_CMap_ClassRec clazz
Definition: ttcmap.h:50
TT_CMap_Info_GetFunc get_cmap_info
Definition: ttcmap.h:53
FT_ValidatorRec validator
Definition: ttcmap.h:100
FT_UInt num_glyphs
Definition: ttcmap.h:101
FT_Error(* TT_CMap_Info_GetFunc)(FT_CharMap charmap, TT_CMapInfo *cmap_info)
Definition: svttcmap.h:66
struct TT_CMapRec_ * TT_CMap
tt_get_cmap_info(FT_CharMap charmap, TT_CMapInfo *cmap_info)
Definition: ttcmap.c:3888
struct TT_CMapRec_ TT_CMapRec
struct TT_ValidatorRec_ * TT_Validator
FT_CALLBACK_TABLE const TT_CMap_ClassRec tt_cmap_unicode_class_rec
Definition: ttcmap.h:110
tt_face_build_cmaps(TT_Face face)
Definition: ttcmap.c:3780
const struct TT_CMap_ClassRec_ * TT_CMap_Class
Definition: ttcmap.h:41
FT_Error(* TT_CMap_ValidateFunc)(FT_Byte *data, FT_Validator valid)
Definition: ttcmap.h:45
struct TT_CMap_ClassRec_ TT_CMap_ClassRec
struct TT_ValidatorRec_ TT_ValidatorRec