1
/***************************************************************************/
5
/* FreeType API for accessing BDF-specific strings (body). */
7
/* Copyright 2002, 2003 by */
8
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
10
/* This file is part of the FreeType project, and may only be used, */
11
/* modified, and distributed under the terms of the FreeType project */
12
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13
/* this file you indicate that you have read the license and */
14
/* understand and accept it fully. */
16
/***************************************************************************/
20
#include FT_INTERNAL_OBJECTS_H
21
#include FT_SERVICE_BDF_H
24
FT_EXPORT_DEF( FT_Error )
25
FT_Get_BDF_Charset_ID( FT_Face face,
26
const char* *acharset_encoding,
27
const char* *acharset_registry )
30
const char* encoding = NULL;
31
const char* registry = NULL;
34
error = FT_Err_Invalid_Argument;
38
FT_Service_BDF service;
41
FT_FACE_FIND_SERVICE( face, service, BDF );
43
if ( service && service->get_charset_id )
44
error = service->get_charset_id( face, &encoding, ®istry );
47
if ( acharset_encoding )
48
*acharset_encoding = encoding;
50
if ( acharset_registry )
51
*acharset_registry = registry;
58
FT_Get_BDF_Property( FT_Face face,
59
const char* prop_name,
60
BDF_PropertyRec *aproperty )
65
error = FT_Err_Invalid_Argument;
67
aproperty->type = BDF_PROPERTY_TYPE_NONE;
71
FT_Service_BDF service;
74
FT_FACE_FIND_SERVICE( face, service, BDF );
76
if ( service && service->get_property )
77
error = service->get_property( face, prop_name, aproperty );