1 /***************************************************************************/
5 /* TrueType character mapping table (cmap) support (specification). */
7 /* Copyright 2002, 2003, 2004, 2005 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
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. */
16 /***************************************************************************/
24 #include FT_INTERNAL_TRUETYPE_TYPES_H
25 #include FT_INTERNAL_VALIDATE_H
26 #include FT_SERVICE_TT_CMAP_H
31 #define TT_CMAP_FLAG_UNSORTED 1
32 #define TT_CMAP_FLAG_OVERLAPPING 2
34 typedef struct TT_CMapRec_
37 FT_Byte
* data
; /* pointer to in-memory cmap table */
38 FT_Int flags
; /* for format 4 only */
40 } TT_CMapRec
, *TT_CMap
;
42 typedef const struct TT_CMap_ClassRec_
* TT_CMap_Class
;
46 (*TT_CMap_ValidateFunc
)( FT_Byte
* data
,
49 typedef struct TT_CMap_ClassRec_
51 FT_CMap_ClassRec clazz
;
53 TT_CMap_ValidateFunc validate
;
54 TT_CMap_Info_GetFunc get_cmap_info
;
59 typedef struct TT_ValidatorRec_
61 FT_ValidatorRec validator
;
64 } TT_ValidatorRec
, *TT_Validator
;
67 #define TT_VALIDATOR( x ) ((TT_Validator)( x ))
68 #define TT_VALID_GLYPH_COUNT( x ) TT_VALIDATOR( x )->num_glyphs
72 tt_face_build_cmaps( TT_Face face
);
74 /* used in tt-cmaps service */
76 tt_get_cmap_info( FT_CharMap charmap
,
77 TT_CMapInfo
*cmap_info
);
82 #endif /* __TTCMAP_H__ */