00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include <ft2build.h>
00020 #include FT_INTERNAL_OBJECTS_H
00021 #include FT_SERVICE_BDF_H
00022
00023
00024
00025
00026 FT_EXPORT_DEF( FT_Error )
00027 FT_Get_BDF_Charset_ID( FT_Face face,
00028 const char* *acharset_encoding,
00029 const char* *acharset_registry )
00030 {
00031 FT_Error error;
00032 const char* encoding = NULL;
00033 const char* registry = NULL;
00034
00035
00036 error = FT_Err_Invalid_Argument;
00037
00038 if ( face )
00039 {
00040 FT_Service_BDF service;
00041
00042
00043 FT_FACE_FIND_SERVICE( face, service, BDF );
00044
00045 if ( service && service->get_charset_id )
00046 error = service->get_charset_id( face, &encoding, ®istry );
00047 }
00048
00049 if ( acharset_encoding )
00050 *acharset_encoding = encoding;
00051
00052 if ( acharset_registry )
00053 *acharset_registry = registry;
00054
00055 return error;
00056 }
00057
00058
00059
00060
00061 FT_EXPORT_DEF( FT_Error )
00062 FT_Get_BDF_Property( FT_Face face,
00063 const char* prop_name,
00064 BDF_PropertyRec *aproperty )
00065 {
00066 FT_Error error;
00067
00068
00069 error = FT_Err_Invalid_Argument;
00070
00071 aproperty->type = BDF_PROPERTY_TYPE_NONE;
00072
00073 if ( face )
00074 {
00075 FT_Service_BDF service;
00076
00077
00078 FT_FACE_FIND_SERVICE( face, service, BDF );
00079
00080 if ( service && service->get_property )
00081 error = service->get_property( face, prop_name, aproperty );
00082 }
00083
00084 return error;
00085 }
00086
00087
00088