1 /****************************************************************************
5 * FreeType API for accessing CID font information (specification).
7 * Copyright (C) 2007-2023 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.
22 #include <freetype/freetype.h>
25 #error "freetype.h of FreeType 1 has been loaded!"
26 #error "Please fix the directory search order for header files"
27 #error "so that freetype.h of FreeType 2 is found first."
34 /**************************************************************************
43 * CID-keyed font-specific API.
46 * This section contains the declaration of CID-keyed font-specific
52 /**************************************************************************
55 * FT_Get_CID_Registry_Ordering_Supplement
58 * Retrieve the Registry/Ordering/Supplement triple (also known as the
59 * "R/O/S") from a CID-keyed font.
63 * A handle to the input face.
67 * The registry, as a C~string, owned by the face.
70 * The ordering, as a C~string, owned by the face.
76 * FreeType error code. 0~means success.
79 * This function only works with CID faces, returning an error
86 FT_Get_CID_Registry_Ordering_Supplement( FT_Face face,
87 const char* *registry,
88 const char* *ordering,
92 /**************************************************************************
95 * FT_Get_CID_Is_Internally_CID_Keyed
98 * Retrieve the type of the input face, CID keyed or not. In contrast
99 * to the @FT_IS_CID_KEYED macro this function returns successfully also
100 * for CID-keyed fonts in an SFNT wrapper.
104 * A handle to the input face.
108 * The type of the face as an @FT_Bool.
111 * FreeType error code. 0~means success.
114 * This function only works with CID faces and OpenType fonts, returning
115 * an error otherwise.
120 FT_EXPORT( FT_Error )
121 FT_Get_CID_Is_Internally_CID_Keyed( FT_Face face,
125 /**************************************************************************
128 * FT_Get_CID_From_Glyph_Index
131 * Retrieve the CID of the input glyph index.
135 * A handle to the input face.
138 * The input glyph index.
142 * The CID as an @FT_UInt.
145 * FreeType error code. 0~means success.
148 * This function only works with CID faces and OpenType fonts, returning
149 * an error otherwise.
154 FT_EXPORT( FT_Error )
155 FT_Get_CID_From_Glyph_Index( FT_Face face,
164 #endif /* FTCID_H_ */