svcid.h revision 77f63d23f7d380b0ff02c18fd6a154ab9063128a
1/***************************************************************************/ 2/* */ 3/* svcid.h */ 4/* */ 5/* The FreeType CID font services (specification). */ 6/* */ 7/* Copyright 2007, 2009 by Derek Clegg, Michael Toftdal. */ 8/* */ 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. */ 14/* */ 15/***************************************************************************/ 16 17 18#ifndef __SVCID_H__ 19#define __SVCID_H__ 20 21#include FT_INTERNAL_SERVICE_H 22 23 24FT_BEGIN_HEADER 25 26 27#define FT_SERVICE_ID_CID "CID" 28 29 typedef FT_Error 30 (*FT_CID_GetRegistryOrderingSupplementFunc)( FT_Face face, 31 const char* *registry, 32 const char* *ordering, 33 FT_Int *supplement ); 34 typedef FT_Error 35 (*FT_CID_GetIsInternallyCIDKeyedFunc)( FT_Face face, 36 FT_Bool *is_cid ); 37 typedef FT_Error 38 (*FT_CID_GetCIDFromGlyphIndexFunc)( FT_Face face, 39 FT_UInt glyph_index, 40 FT_UInt *cid ); 41 42 FT_DEFINE_SERVICE( CID ) 43 { 44 FT_CID_GetRegistryOrderingSupplementFunc get_ros; 45 FT_CID_GetIsInternallyCIDKeyedFunc get_is_cid; 46 FT_CID_GetCIDFromGlyphIndexFunc get_cid_from_glyph_index; 47 }; 48 49 /* */ 50 51 52FT_END_HEADER 53 54 55#endif /* __SVCID_H__ */ 56 57 58/* END */ 59