vrshoot
diff libs/ft2static/freetype/internal/services/svcid.h @ 0:b2f14e535253
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 01 Feb 2014 19:58:19 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libs/ft2static/freetype/internal/services/svcid.h Sat Feb 01 19:58:19 2014 +0200 1.3 @@ -0,0 +1,83 @@ 1.4 +/***************************************************************************/ 1.5 +/* */ 1.6 +/* svcid.h */ 1.7 +/* */ 1.8 +/* The FreeType CID font services (specification). */ 1.9 +/* */ 1.10 +/* Copyright 2007, 2009 by Derek Clegg, Michael Toftdal. */ 1.11 +/* */ 1.12 +/* This file is part of the FreeType project, and may only be used, */ 1.13 +/* modified, and distributed under the terms of the FreeType project */ 1.14 +/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 1.15 +/* this file you indicate that you have read the license and */ 1.16 +/* understand and accept it fully. */ 1.17 +/* */ 1.18 +/***************************************************************************/ 1.19 + 1.20 + 1.21 +#ifndef __SVCID_H__ 1.22 +#define __SVCID_H__ 1.23 + 1.24 +#include FT_INTERNAL_SERVICE_H 1.25 + 1.26 + 1.27 +FT_BEGIN_HEADER 1.28 + 1.29 + 1.30 +#define FT_SERVICE_ID_CID "CID" 1.31 + 1.32 + typedef FT_Error 1.33 + (*FT_CID_GetRegistryOrderingSupplementFunc)( FT_Face face, 1.34 + const char* *registry, 1.35 + const char* *ordering, 1.36 + FT_Int *supplement ); 1.37 + typedef FT_Error 1.38 + (*FT_CID_GetIsInternallyCIDKeyedFunc)( FT_Face face, 1.39 + FT_Bool *is_cid ); 1.40 + typedef FT_Error 1.41 + (*FT_CID_GetCIDFromGlyphIndexFunc)( FT_Face face, 1.42 + FT_UInt glyph_index, 1.43 + FT_UInt *cid ); 1.44 + 1.45 + FT_DEFINE_SERVICE( CID ) 1.46 + { 1.47 + FT_CID_GetRegistryOrderingSupplementFunc get_ros; 1.48 + FT_CID_GetIsInternallyCIDKeyedFunc get_is_cid; 1.49 + FT_CID_GetCIDFromGlyphIndexFunc get_cid_from_glyph_index; 1.50 + }; 1.51 + 1.52 +#ifndef FT_CONFIG_OPTION_PIC 1.53 + 1.54 +#define FT_DEFINE_SERVICE_CIDREC(class_, get_ros_, \ 1.55 + get_is_cid_, get_cid_from_glyph_index_ ) \ 1.56 + static const FT_Service_CIDRec class_ = \ 1.57 + { \ 1.58 + get_ros_, get_is_cid_, get_cid_from_glyph_index_ \ 1.59 + }; 1.60 + 1.61 +#else /* FT_CONFIG_OPTION_PIC */ 1.62 + 1.63 +#define FT_DEFINE_SERVICE_CIDREC(class_, get_ros_, \ 1.64 + get_is_cid_, get_cid_from_glyph_index_ ) \ 1.65 + void \ 1.66 + FT_Init_Class_##class_( FT_Library library, \ 1.67 + FT_Service_CIDRec* clazz) \ 1.68 + { \ 1.69 + FT_UNUSED(library); \ 1.70 + clazz->get_ros = get_ros_; \ 1.71 + clazz->get_is_cid = get_is_cid_; \ 1.72 + clazz->get_cid_from_glyph_index = get_cid_from_glyph_index_; \ 1.73 + } 1.74 + 1.75 +#endif /* FT_CONFIG_OPTION_PIC */ 1.76 + 1.77 + /* */ 1.78 + 1.79 + 1.80 +FT_END_HEADER 1.81 + 1.82 + 1.83 +#endif /* __SVCID_H__ */ 1.84 + 1.85 + 1.86 +/* END */