vrshoot
diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libs/ft2static/freetype/internal/services/svttglyf.h Sat Feb 01 19:58:19 2014 +0200 1.3 @@ -0,0 +1,67 @@ 1.4 +/***************************************************************************/ 1.5 +/* */ 1.6 +/* svttglyf.h */ 1.7 +/* */ 1.8 +/* The FreeType TrueType glyph service. */ 1.9 +/* */ 1.10 +/* Copyright 2007 by David Turner. */ 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 +#ifndef __SVTTGLYF_H__ 1.21 +#define __SVTTGLYF_H__ 1.22 + 1.23 +#include FT_INTERNAL_SERVICE_H 1.24 +#include FT_TRUETYPE_TABLES_H 1.25 + 1.26 + 1.27 +FT_BEGIN_HEADER 1.28 + 1.29 + 1.30 +#define FT_SERVICE_ID_TT_GLYF "tt-glyf" 1.31 + 1.32 + 1.33 + typedef FT_ULong 1.34 + (*TT_Glyf_GetLocationFunc)( FT_Face face, 1.35 + FT_UInt gindex, 1.36 + FT_ULong *psize ); 1.37 + 1.38 + FT_DEFINE_SERVICE( TTGlyf ) 1.39 + { 1.40 + TT_Glyf_GetLocationFunc get_location; 1.41 + }; 1.42 + 1.43 +#ifndef FT_CONFIG_OPTION_PIC 1.44 + 1.45 +#define FT_DEFINE_SERVICE_TTGLYFREC(class_, get_location_ ) \ 1.46 + static const FT_Service_TTGlyfRec class_ = \ 1.47 + { \ 1.48 + get_location_ \ 1.49 + }; 1.50 + 1.51 +#else /* FT_CONFIG_OPTION_PIC */ 1.52 + 1.53 +#define FT_DEFINE_SERVICE_TTGLYFREC(class_, get_location_ ) \ 1.54 + void \ 1.55 + FT_Init_Class_##class_( FT_Service_TTGlyfRec* clazz ) \ 1.56 + { \ 1.57 + clazz->get_location = get_location_; \ 1.58 + } 1.59 + 1.60 +#endif /* FT_CONFIG_OPTION_PIC */ 1.61 + 1.62 + /* */ 1.63 + 1.64 + 1.65 +FT_END_HEADER 1.66 + 1.67 +#endif /* __SVTTGLYF_H__ */ 1.68 + 1.69 + 1.70 +/* END */