ReactOS 0.4.16-dev-334-g4d9f67c
ftbdf.c File Reference
#include <ft2build.h>
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 29 of file ftbdf.c.

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

◆ FT_Get_BDF_Property()

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

Definition at line 63 of file ftbdf.c.

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