1 /***************************************************************************/ |
1 /**************************************************************************** |
2 /* */ |
2 * |
3 /* svsfnt.h */ |
3 * svsfnt.h |
4 /* */ |
4 * |
5 /* The FreeType SFNT table loading service (specification). */ |
5 * The FreeType SFNT table loading service (specification). |
6 /* */ |
6 * |
7 /* Copyright 2003-2018 by */ |
7 * Copyright (C) 2003-2019 by |
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
8 * David Turner, Robert Wilhelm, and Werner Lemberg. |
9 /* */ |
9 * |
10 /* This file is part of the FreeType project, and may only be used, */ |
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 */ |
11 * modified, and distributed under the terms of the FreeType project |
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
12 * license, LICENSE.TXT. By continuing to use, modify, or distribute |
13 /* this file you indicate that you have read the license and */ |
13 * this file you indicate that you have read the license and |
14 /* understand and accept it fully. */ |
14 * understand and accept it fully. |
15 /* */ |
15 * |
16 /***************************************************************************/ |
16 */ |
17 |
17 |
18 |
18 |
19 #ifndef SVSFNT_H_ |
19 #ifndef SVSFNT_H_ |
20 #define SVSFNT_H_ |
20 #define SVSFNT_H_ |
21 |
21 |
68 FT_SFNT_TableGetFunc get_table; |
68 FT_SFNT_TableGetFunc get_table; |
69 FT_SFNT_TableInfoFunc table_info; |
69 FT_SFNT_TableInfoFunc table_info; |
70 }; |
70 }; |
71 |
71 |
72 |
72 |
73 #ifndef FT_CONFIG_OPTION_PIC |
|
74 |
|
75 #define FT_DEFINE_SERVICE_SFNT_TABLEREC( class_, load_, get_, info_ ) \ |
73 #define FT_DEFINE_SERVICE_SFNT_TABLEREC( class_, load_, get_, info_ ) \ |
76 static const FT_Service_SFNT_TableRec class_ = \ |
74 static const FT_Service_SFNT_TableRec class_ = \ |
77 { \ |
75 { \ |
78 load_, get_, info_ \ |
76 load_, get_, info_ \ |
79 }; |
77 }; |
80 |
|
81 #else /* FT_CONFIG_OPTION_PIC */ |
|
82 |
|
83 #define FT_DEFINE_SERVICE_SFNT_TABLEREC( class_, load_, get_, info_ ) \ |
|
84 void \ |
|
85 FT_Init_Class_ ## class_( FT_Service_SFNT_TableRec* clazz ) \ |
|
86 { \ |
|
87 clazz->load_table = load_; \ |
|
88 clazz->get_table = get_; \ |
|
89 clazz->table_info = info_; \ |
|
90 } |
|
91 |
|
92 #endif /* FT_CONFIG_OPTION_PIC */ |
|
93 |
78 |
94 /* */ |
79 /* */ |
95 |
80 |
96 |
81 |
97 FT_END_HEADER |
82 FT_END_HEADER |