vrshoot
annotate libs/ft2static/freetype/internal/services/svttglyf.h @ 0:b2f14e535253
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 01 Feb 2014 19:58:19 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 /***************************************************************************/ |
nuclear@0 | 2 /* */ |
nuclear@0 | 3 /* svttglyf.h */ |
nuclear@0 | 4 /* */ |
nuclear@0 | 5 /* The FreeType TrueType glyph service. */ |
nuclear@0 | 6 /* */ |
nuclear@0 | 7 /* Copyright 2007 by David Turner. */ |
nuclear@0 | 8 /* */ |
nuclear@0 | 9 /* This file is part of the FreeType project, and may only be used, */ |
nuclear@0 | 10 /* modified, and distributed under the terms of the FreeType project */ |
nuclear@0 | 11 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
nuclear@0 | 12 /* this file you indicate that you have read the license and */ |
nuclear@0 | 13 /* understand and accept it fully. */ |
nuclear@0 | 14 /* */ |
nuclear@0 | 15 /***************************************************************************/ |
nuclear@0 | 16 |
nuclear@0 | 17 #ifndef __SVTTGLYF_H__ |
nuclear@0 | 18 #define __SVTTGLYF_H__ |
nuclear@0 | 19 |
nuclear@0 | 20 #include FT_INTERNAL_SERVICE_H |
nuclear@0 | 21 #include FT_TRUETYPE_TABLES_H |
nuclear@0 | 22 |
nuclear@0 | 23 |
nuclear@0 | 24 FT_BEGIN_HEADER |
nuclear@0 | 25 |
nuclear@0 | 26 |
nuclear@0 | 27 #define FT_SERVICE_ID_TT_GLYF "tt-glyf" |
nuclear@0 | 28 |
nuclear@0 | 29 |
nuclear@0 | 30 typedef FT_ULong |
nuclear@0 | 31 (*TT_Glyf_GetLocationFunc)( FT_Face face, |
nuclear@0 | 32 FT_UInt gindex, |
nuclear@0 | 33 FT_ULong *psize ); |
nuclear@0 | 34 |
nuclear@0 | 35 FT_DEFINE_SERVICE( TTGlyf ) |
nuclear@0 | 36 { |
nuclear@0 | 37 TT_Glyf_GetLocationFunc get_location; |
nuclear@0 | 38 }; |
nuclear@0 | 39 |
nuclear@0 | 40 #ifndef FT_CONFIG_OPTION_PIC |
nuclear@0 | 41 |
nuclear@0 | 42 #define FT_DEFINE_SERVICE_TTGLYFREC(class_, get_location_ ) \ |
nuclear@0 | 43 static const FT_Service_TTGlyfRec class_ = \ |
nuclear@0 | 44 { \ |
nuclear@0 | 45 get_location_ \ |
nuclear@0 | 46 }; |
nuclear@0 | 47 |
nuclear@0 | 48 #else /* FT_CONFIG_OPTION_PIC */ |
nuclear@0 | 49 |
nuclear@0 | 50 #define FT_DEFINE_SERVICE_TTGLYFREC(class_, get_location_ ) \ |
nuclear@0 | 51 void \ |
nuclear@0 | 52 FT_Init_Class_##class_( FT_Service_TTGlyfRec* clazz ) \ |
nuclear@0 | 53 { \ |
nuclear@0 | 54 clazz->get_location = get_location_; \ |
nuclear@0 | 55 } |
nuclear@0 | 56 |
nuclear@0 | 57 #endif /* FT_CONFIG_OPTION_PIC */ |
nuclear@0 | 58 |
nuclear@0 | 59 /* */ |
nuclear@0 | 60 |
nuclear@0 | 61 |
nuclear@0 | 62 FT_END_HEADER |
nuclear@0 | 63 |
nuclear@0 | 64 #endif /* __SVTTGLYF_H__ */ |
nuclear@0 | 65 |
nuclear@0 | 66 |
nuclear@0 | 67 /* END */ |