1 /***************************************************************************/
5 /* FreeType API for accessing CID font information (specification). */
7 /* Copyright 2007-2018 by */
8 /* Dereg Clegg and Michael Toftdal. */
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 /***************************************************************************/
23 #include FT_FREETYPE_H
26 #error "freetype.h of FreeType 1 has been loaded!"
27 #error "Please fix the directory search order for header files"
28 #error "so that freetype.h of FreeType 2 is found first."
35 /*************************************************************************/
44 /* CID-keyed font specific API. */
47 /* This section contains the declaration of CID-keyed font specific */
50 /*************************************************************************/
53 /**********************************************************************
56 * FT_Get_CID_Registry_Ordering_Supplement
59 * Retrieve the Registry/Ordering/Supplement triple (also known as the
60 * "R/O/S") from a CID-keyed font.
64 * A handle to the input face.
68 * The registry, as a C~string, owned by the face.
71 * The ordering, as a C~string, owned by the face.
77 * FreeType error code. 0~means success.
80 * This function only works with CID faces, returning an error
87 FT_Get_CID_Registry_Ordering_Supplement( FT_Face face
,
88 const char* *registry
,
89 const char* *ordering
,
93 /**********************************************************************
96 * FT_Get_CID_Is_Internally_CID_Keyed
99 * Retrieve the type of the input face, CID keyed or not. In
100 * contrast to the @FT_IS_CID_KEYED macro this function returns
101 * successfully also for CID-keyed fonts in an SFNT wrapper.
105 * A handle to the input face.
109 * The type of the face as an @FT_Bool.
112 * FreeType error code. 0~means success.
115 * This function only works with CID faces and OpenType fonts,
116 * returning an error otherwise.
121 FT_EXPORT( FT_Error
)
122 FT_Get_CID_Is_Internally_CID_Keyed( FT_Face face
,
126 /**********************************************************************
129 * FT_Get_CID_From_Glyph_Index
132 * Retrieve the CID of the input glyph index.
136 * A handle to the input face.
139 * The input glyph index.
143 * The CID as an @FT_UInt.
146 * FreeType error code. 0~means success.
149 * This function only works with CID faces and OpenType fonts,
150 * returning an error otherwise.
155 FT_EXPORT( FT_Error
)
156 FT_Get_CID_From_Glyph_Index( FT_Face face
,
165 #endif /* FTCID_H_ */