nuclear@0: /***************************************************************************/ nuclear@0: /* */ nuclear@0: /* ftcid.h */ nuclear@0: /* */ nuclear@0: /* FreeType API for accessing CID font information (specification). */ nuclear@0: /* */ nuclear@0: /* Copyright 2007, 2009 by Dereg Clegg, Michael Toftdal. */ nuclear@0: /* */ nuclear@0: /* This file is part of the FreeType project, and may only be used, */ nuclear@0: /* modified, and distributed under the terms of the FreeType project */ nuclear@0: /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ nuclear@0: /* this file you indicate that you have read the license and */ nuclear@0: /* understand and accept it fully. */ nuclear@0: /* */ nuclear@0: /***************************************************************************/ nuclear@0: nuclear@0: nuclear@0: #ifndef __FTCID_H__ nuclear@0: #define __FTCID_H__ nuclear@0: nuclear@0: #include nuclear@0: #include FT_FREETYPE_H nuclear@0: nuclear@0: #ifdef FREETYPE_H nuclear@0: #error "freetype.h of FreeType 1 has been loaded!" nuclear@0: #error "Please fix the directory search order for header files" nuclear@0: #error "so that freetype.h of FreeType 2 is found first." nuclear@0: #endif nuclear@0: nuclear@0: nuclear@0: FT_BEGIN_HEADER nuclear@0: nuclear@0: nuclear@0: /*************************************************************************/ nuclear@0: /* */ nuclear@0: /*
*/ nuclear@0: /* cid_fonts */ nuclear@0: /* */ nuclear@0: /* */ nuclear@0: /* CID Fonts */ nuclear@0: /* */ nuclear@0: /* <Abstract> */ nuclear@0: /* CID-keyed font specific API. */ nuclear@0: /* */ nuclear@0: /* <Description> */ nuclear@0: /* This section contains the declaration of CID-keyed font specific */ nuclear@0: /* functions. */ nuclear@0: /* */ nuclear@0: /*************************************************************************/ nuclear@0: nuclear@0: nuclear@0: /********************************************************************** nuclear@0: * nuclear@0: * @function: nuclear@0: * FT_Get_CID_Registry_Ordering_Supplement nuclear@0: * nuclear@0: * @description: nuclear@0: * Retrieve the Registry/Ordering/Supplement triple (also known as the nuclear@0: * "R/O/S") from a CID-keyed font. nuclear@0: * nuclear@0: * @input: nuclear@0: * face :: nuclear@0: * A handle to the input face. nuclear@0: * nuclear@0: * @output: nuclear@0: * registry :: nuclear@0: * The registry, as a C~string, owned by the face. nuclear@0: * nuclear@0: * ordering :: nuclear@0: * The ordering, as a C~string, owned by the face. nuclear@0: * nuclear@0: * supplement :: nuclear@0: * The supplement. nuclear@0: * nuclear@0: * @return: nuclear@0: * FreeType error code. 0~means success. nuclear@0: * nuclear@0: * @note: nuclear@0: * This function only works with CID faces, returning an error nuclear@0: * otherwise. nuclear@0: * nuclear@0: * @since: nuclear@0: * 2.3.6 nuclear@0: */ nuclear@0: FT_EXPORT( FT_Error ) nuclear@0: FT_Get_CID_Registry_Ordering_Supplement( FT_Face face, nuclear@0: const char* *registry, nuclear@0: const char* *ordering, nuclear@0: FT_Int *supplement); nuclear@0: nuclear@0: nuclear@0: /********************************************************************** nuclear@0: * nuclear@0: * @function: nuclear@0: * FT_Get_CID_Is_Internally_CID_Keyed nuclear@0: * nuclear@0: * @description: nuclear@0: * Retrieve the type of the input face, CID keyed or not. In nuclear@0: * constrast to the @FT_IS_CID_KEYED macro this function returns nuclear@0: * successfully also for CID-keyed fonts in an SNFT wrapper. nuclear@0: * nuclear@0: * @input: nuclear@0: * face :: nuclear@0: * A handle to the input face. nuclear@0: * nuclear@0: * @output: nuclear@0: * is_cid :: nuclear@0: * The type of the face as an @FT_Bool. nuclear@0: * nuclear@0: * @return: nuclear@0: * FreeType error code. 0~means success. nuclear@0: * nuclear@0: * @note: nuclear@0: * This function only works with CID faces and OpenType fonts, nuclear@0: * returning an error otherwise. nuclear@0: * nuclear@0: * @since: nuclear@0: * 2.3.9 nuclear@0: */ nuclear@0: FT_EXPORT( FT_Error ) nuclear@0: FT_Get_CID_Is_Internally_CID_Keyed( FT_Face face, nuclear@0: FT_Bool *is_cid ); nuclear@0: nuclear@0: nuclear@0: /********************************************************************** nuclear@0: * nuclear@0: * @function: nuclear@0: * FT_Get_CID_From_Glyph_Index nuclear@0: * nuclear@0: * @description: nuclear@0: * Retrieve the CID of the input glyph index. nuclear@0: * nuclear@0: * @input: nuclear@0: * face :: nuclear@0: * A handle to the input face. nuclear@0: * nuclear@0: * glyph_index :: nuclear@0: * The input glyph index. nuclear@0: * nuclear@0: * @output: nuclear@0: * cid :: nuclear@0: * The CID as an @FT_UInt. nuclear@0: * nuclear@0: * @return: nuclear@0: * FreeType error code. 0~means success. nuclear@0: * nuclear@0: * @note: nuclear@0: * This function only works with CID faces and OpenType fonts, nuclear@0: * returning an error otherwise. nuclear@0: * nuclear@0: * @since: nuclear@0: * 2.3.9 nuclear@0: */ nuclear@0: FT_EXPORT( FT_Error ) nuclear@0: FT_Get_CID_From_Glyph_Index( FT_Face face, nuclear@0: FT_UInt glyph_index, nuclear@0: FT_UInt *cid ); nuclear@0: nuclear@0: /* */ nuclear@0: nuclear@0: FT_END_HEADER nuclear@0: nuclear@0: #endif /* __FTCID_H__ */ nuclear@0: nuclear@0: nuclear@0: /* END */