00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __SVBDF_H__
00020 #define __SVBDF_H__
00021
00022 #include FT_BDF_H
00023 #include FT_INTERNAL_SERVICE_H
00024
00025
00026 FT_BEGIN_HEADER
00027
00028
00029 #define FT_SERVICE_ID_BDF "bdf"
00030
00031 typedef FT_Error
00032 (*FT_BDF_GetCharsetIdFunc)( FT_Face face,
00033 const char* *acharset_encoding,
00034 const char* *acharset_registry );
00035
00036 typedef FT_Error
00037 (*FT_BDF_GetPropertyFunc)( FT_Face face,
00038 const char* prop_name,
00039 BDF_PropertyRec *aproperty );
00040
00041
00042 FT_DEFINE_SERVICE( BDF )
00043 {
00044 FT_BDF_GetCharsetIdFunc get_charset_id;
00045 FT_BDF_GetPropertyFunc get_property;
00046 };
00047
00048 #ifndef FT_CONFIG_OPTION_PIC
00049
00050 #define FT_DEFINE_SERVICE_BDFRec(class_, get_charset_id_, get_property_) \
00051 static const FT_Service_BDFRec class_ = \
00052 { \
00053 get_charset_id_, get_property_ \
00054 };
00055
00056 #else
00057
00058 #define FT_DEFINE_SERVICE_BDFRec(class_, get_charset_id_, get_property_) \
00059 void \
00060 FT_Init_Class_##class_( FT_Service_BDFRec* clazz ) \
00061 { \
00062 clazz->get_charset_id = get_charset_id_; \
00063 clazz->get_property = get_property_; \
00064 }
00065
00066 #endif
00067
00068
00069
00070
00071 FT_END_HEADER
00072
00073
00074 #endif
00075
00076
00077