1 /***************************************************************************/
5 /* FreeType API for accessing CID font information. */
7 /* Copyright 2007, 2009 by Derek Clegg, Michael Toftdal. */
9 /* This file is part of the FreeType project, and may only be used, */
10 /* modified, and distributed under the terms of the FreeType project */
11 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
12 /* this file you indicate that you have read the license and */
13 /* understand and accept it fully. */
15 /***************************************************************************/
20 #include FT_INTERNAL_OBJECTS_H
21 #include FT_SERVICE_CID_H
24 /* documentation is in ftcid.h */
26 FT_EXPORT_DEF( FT_Error )
27 FT_Get_CID_Registry_Ordering_Supplement( FT_Face face,
28 const char* *registry,
29 const char* *ordering,
38 error = FT_Err_Invalid_Argument;
42 FT_Service_CID service;
45 FT_FACE_FIND_SERVICE( face, service, CID );
47 if ( service && service->get_ros )
48 error = service->get_ros( face, &r, &o, &s );
64 FT_EXPORT_DEF( FT_Error )
65 FT_Get_CID_Is_Internally_CID_Keyed( FT_Face face,
68 FT_Error error = FT_Err_Invalid_Argument;
74 FT_Service_CID service;
77 FT_FACE_FIND_SERVICE( face, service, CID );
79 if ( service && service->get_is_cid )
80 error = service->get_is_cid( face, &ic);
90 FT_EXPORT_DEF( FT_Error )
91 FT_Get_CID_From_Glyph_Index( FT_Face face,
95 FT_Error error = FT_Err_Invalid_Argument;
101 FT_Service_CID service;
104 FT_FACE_FIND_SERVICE( face, service, CID );
106 if ( service && service->get_cid_from_glyph_index )
107 error = service->get_cid_from_glyph_index( face, glyph_index, &c);