nuclear@0: /***************************************************************************/ nuclear@0: /* */ nuclear@0: /* svttglyf.h */ nuclear@0: /* */ nuclear@0: /* The FreeType TrueType glyph service. */ nuclear@0: /* */ nuclear@0: /* Copyright 2007 by David Turner. */ 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: #ifndef __SVTTGLYF_H__ nuclear@0: #define __SVTTGLYF_H__ nuclear@0: nuclear@0: #include FT_INTERNAL_SERVICE_H nuclear@0: #include FT_TRUETYPE_TABLES_H nuclear@0: nuclear@0: nuclear@0: FT_BEGIN_HEADER nuclear@0: nuclear@0: nuclear@0: #define FT_SERVICE_ID_TT_GLYF "tt-glyf" nuclear@0: nuclear@0: nuclear@0: typedef FT_ULong nuclear@0: (*TT_Glyf_GetLocationFunc)( FT_Face face, nuclear@0: FT_UInt gindex, nuclear@0: FT_ULong *psize ); nuclear@0: nuclear@0: FT_DEFINE_SERVICE( TTGlyf ) nuclear@0: { nuclear@0: TT_Glyf_GetLocationFunc get_location; nuclear@0: }; nuclear@0: nuclear@0: #ifndef FT_CONFIG_OPTION_PIC nuclear@0: nuclear@0: #define FT_DEFINE_SERVICE_TTGLYFREC(class_, get_location_ ) \ nuclear@0: static const FT_Service_TTGlyfRec class_ = \ nuclear@0: { \ nuclear@0: get_location_ \ nuclear@0: }; nuclear@0: nuclear@0: #else /* FT_CONFIG_OPTION_PIC */ nuclear@0: nuclear@0: #define FT_DEFINE_SERVICE_TTGLYFREC(class_, get_location_ ) \ nuclear@0: void \ nuclear@0: FT_Init_Class_##class_( FT_Service_TTGlyfRec* clazz ) \ nuclear@0: { \ nuclear@0: clazz->get_location = get_location_; \ nuclear@0: } nuclear@0: nuclear@0: #endif /* FT_CONFIG_OPTION_PIC */ nuclear@0: nuclear@0: /* */ nuclear@0: nuclear@0: nuclear@0: FT_END_HEADER nuclear@0: nuclear@0: #endif /* __SVTTGLYF_H__ */ nuclear@0: nuclear@0: nuclear@0: /* END */