blob: c24475fc206de501400ceaa7b6611d35a45f9a0e [file] [log] [blame]
The Android Open Source Project049d6fe2009-03-03 19:29:31 -08001/***************************************************************************/
2/* */
3/* svbdf.h */
4/* */
5/* The FreeType BDF services (specification). */
6/* */
Xin Li460e8ff2017-02-07 15:19:10 -08007/* Copyright 2003-2016 by */
The Android Open Source Project049d6fe2009-03-03 19:29:31 -08008/* David Turner, Robert Wilhelm, and Werner Lemberg. */
9/* */
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. */
15/* */
16/***************************************************************************/
17
18
Xin Li460e8ff2017-02-07 15:19:10 -080019#ifndef SVBDF_H_
20#define SVBDF_H_
The Android Open Source Project049d6fe2009-03-03 19:29:31 -080021
22#include FT_BDF_H
23#include FT_INTERNAL_SERVICE_H
24
25
26FT_BEGIN_HEADER
27
28
29#define FT_SERVICE_ID_BDF "bdf"
30
31 typedef FT_Error
32 (*FT_BDF_GetCharsetIdFunc)( FT_Face face,
33 const char* *acharset_encoding,
34 const char* *acharset_registry );
35
36 typedef FT_Error
37 (*FT_BDF_GetPropertyFunc)( FT_Face face,
38 const char* prop_name,
39 BDF_PropertyRec *aproperty );
40
41
42 FT_DEFINE_SERVICE( BDF )
43 {
44 FT_BDF_GetCharsetIdFunc get_charset_id;
45 FT_BDF_GetPropertyFunc get_property;
46 };
47
Eric Vannier41371e12012-03-22 16:08:33 -070048
David 'Digit' Turner295ffce2010-03-03 14:24:57 -080049#ifndef FT_CONFIG_OPTION_PIC
50
Eric Vannier41371e12012-03-22 16:08:33 -070051#define FT_DEFINE_SERVICE_BDFRec( class_, \
52 get_charset_id_, \
53 get_property_ ) \
54 static const FT_Service_BDFRec class_ = \
David 'Digit' Turner295ffce2010-03-03 14:24:57 -080055 { \
56 get_charset_id_, get_property_ \
57 };
58
Eric Vannier41371e12012-03-22 16:08:33 -070059#else /* FT_CONFIG_OPTION_PIC */
David 'Digit' Turner295ffce2010-03-03 14:24:57 -080060
Eric Vannier41371e12012-03-22 16:08:33 -070061#define FT_DEFINE_SERVICE_BDFRec( class_, \
62 get_charset_id_, \
63 get_property_ ) \
David 'Digit' Turner295ffce2010-03-03 14:24:57 -080064 void \
Eric Vannier41371e12012-03-22 16:08:33 -070065 FT_Init_Class_ ## class_( FT_Service_BDFRec* clazz ) \
David 'Digit' Turner295ffce2010-03-03 14:24:57 -080066 { \
67 clazz->get_charset_id = get_charset_id_; \
Eric Vannier41371e12012-03-22 16:08:33 -070068 clazz->get_property = get_property_; \
69 }
David 'Digit' Turner295ffce2010-03-03 14:24:57 -080070
Eric Vannier41371e12012-03-22 16:08:33 -070071#endif /* FT_CONFIG_OPTION_PIC */
David 'Digit' Turner295ffce2010-03-03 14:24:57 -080072
The Android Open Source Project049d6fe2009-03-03 19:29:31 -080073 /* */
74
75
76FT_END_HEADER
77
78
Xin Li460e8ff2017-02-07 15:19:10 -080079#endif /* SVBDF_H_ */
The Android Open Source Project049d6fe2009-03-03 19:29:31 -080080
81
82/* END */