1 /***************************************************************************/ |
1 /**************************************************************************** |
2 /* */ |
2 * |
3 /* ftsnames.c */ |
3 * ftsnames.c |
4 /* */ |
4 * |
5 /* Simple interface to access SFNT name tables (which are used */ |
5 * Simple interface to access SFNT name tables (which are used |
6 /* to hold font names, copyright info, notices, etc.) (body). */ |
6 * to hold font names, copyright info, notices, etc.) (body). |
7 /* */ |
7 * |
8 /* This is _not_ used to retrieve glyph names! */ |
8 * This is _not_ used to retrieve glyph names! |
9 /* */ |
9 * |
10 /* Copyright 1996-2018 by */ |
10 * Copyright (C) 1996-2019 by |
11 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
11 * David Turner, Robert Wilhelm, and Werner Lemberg. |
12 /* */ |
12 * |
13 /* This file is part of the FreeType project, and may only be used, */ |
13 * This file is part of the FreeType project, and may only be used, |
14 /* modified, and distributed under the terms of the FreeType project */ |
14 * modified, and distributed under the terms of the FreeType project |
15 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
15 * license, LICENSE.TXT. By continuing to use, modify, or distribute |
16 /* this file you indicate that you have read the license and */ |
16 * this file you indicate that you have read the license and |
17 /* understand and accept it fully. */ |
17 * understand and accept it fully. |
18 /* */ |
18 * |
19 /***************************************************************************/ |
19 */ |
20 |
20 |
21 |
21 |
22 #include <ft2build.h> |
22 #include <ft2build.h> |
23 #include FT_INTERNAL_DEBUG_H |
23 #include FT_INTERNAL_DEBUG_H |
24 |
24 |
140 |
140 |
141 return error; |
141 return error; |
142 } |
142 } |
143 |
143 |
144 |
144 |
145 #endif /* TT_CONFIG_OPTION_SFNT_NAMES */ |
145 #else /* !TT_CONFIG_OPTION_SFNT_NAMES */ |
|
146 |
|
147 |
|
148 FT_EXPORT_DEF( FT_UInt ) |
|
149 FT_Get_Sfnt_Name_Count( FT_Face face ) |
|
150 { |
|
151 FT_UNUSED( face ); |
|
152 |
|
153 return 0; |
|
154 } |
|
155 |
|
156 |
|
157 FT_EXPORT_DEF( FT_Error ) |
|
158 FT_Get_Sfnt_Name( FT_Face face, |
|
159 FT_UInt idx, |
|
160 FT_SfntName *aname ) |
|
161 { |
|
162 FT_UNUSED( face ); |
|
163 FT_UNUSED( idx ); |
|
164 FT_UNUSED( aname ); |
|
165 |
|
166 return FT_THROW( Unimplemented_Feature ); |
|
167 } |
|
168 |
|
169 |
|
170 FT_EXPORT_DEF( FT_Error ) |
|
171 FT_Get_Sfnt_LangTag( FT_Face face, |
|
172 FT_UInt langID, |
|
173 FT_SfntLangTag *alangTag ) |
|
174 { |
|
175 FT_UNUSED( face ); |
|
176 FT_UNUSED( langID ); |
|
177 FT_UNUSED( alangTag ); |
|
178 |
|
179 return FT_THROW( Unimplemented_Feature ); |
|
180 } |
|
181 |
|
182 |
|
183 #endif /* !TT_CONFIG_OPTION_SFNT_NAMES */ |
146 |
184 |
147 |
185 |
148 /* END */ |
186 /* END */ |