1 /***************************************************************************/
5 /* The FreeType TrueType glyph service. */
7 /* Copyright 2007, 2009, 2012 by David Turner. */
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 /***************************************************************************/
17 #ifndef __SVTTGLYF_H__
18 #define __SVTTGLYF_H__
20 #include FT_INTERNAL_SERVICE_H
21 #include FT_TRUETYPE_TABLES_H
27 #define FT_SERVICE_ID_TT_GLYF "tt-glyf"
31 (*TT_Glyf_GetLocationFunc)( FT_Face face,
35 FT_DEFINE_SERVICE( TTGlyf )
37 TT_Glyf_GetLocationFunc get_location;
41 #ifndef FT_CONFIG_OPTION_PIC
43 #define FT_DEFINE_SERVICE_TTGLYFREC( class_, get_location_ ) \
44 static const FT_Service_TTGlyfRec class_ = \
49 #else /* FT_CONFIG_OPTION_PIC */
51 #define FT_DEFINE_SERVICE_TTGLYFREC( class_, get_location_ ) \
53 FT_Init_Class_ ## class_( FT_Service_TTGlyfRec* clazz ) \
55 clazz->get_location = get_location_; \
58 #endif /* FT_CONFIG_OPTION_PIC */
65 #endif /* __SVTTGLYF_H__ */