ReactOS 0.4.16-dev-2354-g16de117
ftbdf.c File Reference
Include dependency graph for ftbdf.c:

Go to the source code of this file.

Functions

 FT_Get_BDF_Charset_ID (FT_Face face, const char **acharset_encoding, const char **acharset_registry)
 
 FT_Get_BDF_Property (FT_Face face, const char *prop_name, BDF_PropertyRec *aproperty)
 

Function Documentation

◆ FT_Get_BDF_Charset_ID()

FT_Get_BDF_Charset_ID ( FT_Face  face,
const char **  acharset_encoding,
const char **  acharset_registry 
)

Definition at line 28 of file ftbdf.c.

31 {
33 const char* encoding = NULL;
34 const char* registry = NULL;
35
36 FT_Service_BDF service;
37
38
39 if ( !face )
40 return FT_THROW( Invalid_Face_Handle );
41
42 FT_FACE_FIND_SERVICE( face, service, BDF );
43
44 if ( service && service->get_charset_id )
45 error = service->get_charset_id( face, &encoding, &registry );
46 else
47 error = FT_THROW( Invalid_Argument );
48
49 if ( acharset_encoding )
50 *acharset_encoding = encoding;
51
52 if ( acharset_registry )
53 *acharset_registry = registry;
54
55 return error;
56 }
const char ** registry
Definition: cffdrivr.c:696
#define NULL
Definition: types.h:112
#define FT_THROW(e)
Definition: ftdebug.h:243
#define FT_FACE_FIND_SERVICE(face, ptr, id)
Definition: ftserv.h:77
int FT_Error
Definition: fttypes.h:299
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
#define error(str)
Definition: mkdosfs.c:1605

◆ FT_Get_BDF_Property()

FT_Get_BDF_Property ( FT_Face  face,
const char prop_name,
BDF_PropertyRec aproperty 
)

Definition at line 62 of file ftbdf.c.

65 {
67
68 FT_Service_BDF service;
69
70
71 if ( !face )
72 return FT_THROW( Invalid_Face_Handle );
73
74 if ( !aproperty )
75 return FT_THROW( Invalid_Argument );
76
77 aproperty->type = BDF_PROPERTY_TYPE_NONE;
78
79 FT_FACE_FIND_SERVICE( face, service, BDF );
80
81 if ( service && service->get_property )
82 error = service->get_property( face, prop_name, aproperty );
83 else
84 error = FT_THROW( Invalid_Argument );
85
86 return error;
87 }
@ BDF_PROPERTY_TYPE_NONE
Definition: ftbdf.h:75
BDF_PropertyType type
Definition: ftbdf.h:119