sdk-world
v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Toggle main menu visibility
Loading...
Searching...
No Matches
ftcid.h
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
* ftcid.h
4
*
5
* FreeType API for accessing CID font information (specification).
6
*
7
* Copyright (C) 2007-2025 by
8
* Dereg Clegg and Michael Toftdal.
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
23
#ifndef FTCID_H_
24
#define FTCID_H_
25
26
#include <
freetype/freetype.h
>
27
28
#ifdef FREETYPE_H
29
#error "freetype.h of FreeType 1 has been loaded!"
30
#error "Please fix the directory search order for header files"
31
#error "so that freetype.h of FreeType 2 is found first."
32
#endif
33
34
35
FT_BEGIN_HEADER
36
37
38
/**************************************************************************
39
*
40
* @section:
41
* cid_fonts
42
*
43
* @title:
44
* CID Fonts
45
*
46
* @abstract:
47
* CID-keyed font-specific API.
48
*
49
* @description:
50
* This section contains the declaration of CID-keyed font-specific
51
* functions.
52
*
53
*/
54
55
56
/**************************************************************************
57
*
58
* @function:
59
* FT_Get_CID_Registry_Ordering_Supplement
60
*
61
* @description:
62
* Retrieve the Registry/Ordering/Supplement triple (also known as the
63
* "R/O/S") from a CID-keyed font.
64
*
65
* @input:
66
* face ::
67
* A handle to the input face.
68
*
69
* @output:
70
* registry ::
71
* The registry, as a C~string, owned by the face.
72
*
73
* ordering ::
74
* The ordering, as a C~string, owned by the face.
75
*
76
* supplement ::
77
* The supplement.
78
*
79
* @return:
80
* FreeType error code. 0~means success.
81
*
82
* @note:
83
* This function only works with CID faces, returning an error
84
* otherwise.
85
*
86
* @since:
87
* 2.3.6
88
*/
89
FT_EXPORT( FT_Error )
90
FT_Get_CID_Registry_Ordering_Supplement( FT_Face face,
91
const
char
* *registry,
92
const
char
* *ordering,
93
FT_Int *supplement );
94
95
96
/**************************************************************************
97
*
98
* @function:
99
* FT_Get_CID_Is_Internally_CID_Keyed
100
*
101
* @description:
102
* Retrieve the type of the input face, CID keyed or not. In contrast
103
* to the @FT_IS_CID_KEYED macro this function returns successfully also
104
* for CID-keyed fonts in an SFNT wrapper.
105
*
106
* @input:
107
* face ::
108
* A handle to the input face.
109
*
110
* @output:
111
* is_cid ::
112
* The type of the face as an @FT_Bool.
113
*
114
* @return:
115
* FreeType error code. 0~means success.
116
*
117
* @note:
118
* This function only works with CID faces and OpenType fonts, returning
119
* an error otherwise.
120
*
121
* @since:
122
* 2.3.9
123
*/
124
FT_EXPORT( FT_Error )
125
FT_Get_CID_Is_Internally_CID_Keyed( FT_Face face,
126
FT_Bool *is_cid );
127
128
129
/**************************************************************************
130
*
131
* @function:
132
* FT_Get_CID_From_Glyph_Index
133
*
134
* @description:
135
* Retrieve the CID of the input glyph index.
136
*
137
* @input:
138
* face ::
139
* A handle to the input face.
140
*
141
* glyph_index ::
142
* The input glyph index.
143
*
144
* @output:
145
* cid ::
146
* The CID as an @FT_UInt.
147
*
148
* @return:
149
* FreeType error code. 0~means success.
150
*
151
* @note:
152
* This function only works with CID faces and OpenType fonts, returning
153
* an error otherwise.
154
*
155
* @since:
156
* 2.3.9
157
*/
158
FT_EXPORT( FT_Error )
159
FT_Get_CID_From_Glyph_Index( FT_Face face,
160
FT_UInt glyph_index,
161
FT_UInt *cid );
162
163
/* */
164
165
166
FT_END_HEADER
167
168
#endif
/* FTCID_H_ */
169
170
171
/* END */
freetype.h
freetype
include
freetype
ftcid.h
Generated by
1.18.0