vrshoot
diff libs/ft2static/freetype/internal/services/svbdf.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/svbdf.h Sat Feb 01 19:58:19 2014 +0200 1.3 @@ -0,0 +1,77 @@ 1.4 +/***************************************************************************/ 1.5 +/* */ 1.6 +/* svbdf.h */ 1.7 +/* */ 1.8 +/* The FreeType BDF services (specification). */ 1.9 +/* */ 1.10 +/* Copyright 2003 by */ 1.11 +/* David Turner, Robert Wilhelm, and Werner Lemberg. */ 1.12 +/* */ 1.13 +/* This file is part of the FreeType project, and may only be used, */ 1.14 +/* modified, and distributed under the terms of the FreeType project */ 1.15 +/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 1.16 +/* this file you indicate that you have read the license and */ 1.17 +/* understand and accept it fully. */ 1.18 +/* */ 1.19 +/***************************************************************************/ 1.20 + 1.21 + 1.22 +#ifndef __SVBDF_H__ 1.23 +#define __SVBDF_H__ 1.24 + 1.25 +#include FT_BDF_H 1.26 +#include FT_INTERNAL_SERVICE_H 1.27 + 1.28 + 1.29 +FT_BEGIN_HEADER 1.30 + 1.31 + 1.32 +#define FT_SERVICE_ID_BDF "bdf" 1.33 + 1.34 + typedef FT_Error 1.35 + (*FT_BDF_GetCharsetIdFunc)( FT_Face face, 1.36 + const char* *acharset_encoding, 1.37 + const char* *acharset_registry ); 1.38 + 1.39 + typedef FT_Error 1.40 + (*FT_BDF_GetPropertyFunc)( FT_Face face, 1.41 + const char* prop_name, 1.42 + BDF_PropertyRec *aproperty ); 1.43 + 1.44 + 1.45 + FT_DEFINE_SERVICE( BDF ) 1.46 + { 1.47 + FT_BDF_GetCharsetIdFunc get_charset_id; 1.48 + FT_BDF_GetPropertyFunc get_property; 1.49 + }; 1.50 + 1.51 +#ifndef FT_CONFIG_OPTION_PIC 1.52 + 1.53 +#define FT_DEFINE_SERVICE_BDFRec(class_, get_charset_id_, get_property_) \ 1.54 + static const FT_Service_BDFRec class_ = \ 1.55 + { \ 1.56 + get_charset_id_, get_property_ \ 1.57 + }; 1.58 + 1.59 +#else /* FT_CONFIG_OPTION_PIC */ 1.60 + 1.61 +#define FT_DEFINE_SERVICE_BDFRec(class_, get_charset_id_, get_property_) \ 1.62 + void \ 1.63 + FT_Init_Class_##class_( FT_Service_BDFRec* clazz ) \ 1.64 + { \ 1.65 + clazz->get_charset_id = get_charset_id_; \ 1.66 + clazz->get_property = get_property_; \ 1.67 + } 1.68 + 1.69 +#endif /* FT_CONFIG_OPTION_PIC */ 1.70 + 1.71 + /* */ 1.72 + 1.73 + 1.74 +FT_END_HEADER 1.75 + 1.76 + 1.77 +#endif /* __SVBDF_H__ */ 1.78 + 1.79 + 1.80 +/* END */