19 |
#include "afglobal.h" |
#include "afglobal.h" |
20 |
#include "afdummy.h" |
#include "afdummy.h" |
21 |
#include "aflatin.h" |
#include "aflatin.h" |
22 |
|
#include "aferrors.h" |
23 |
|
|
24 |
|
|
25 |
/* populate this list when you add new scripts */ |
/* populate this list when you add new scripts */ |
58 |
static FT_Error |
static FT_Error |
59 |
af_face_globals_compute_script_coverage( AF_FaceGlobals globals ) |
af_face_globals_compute_script_coverage( AF_FaceGlobals globals ) |
60 |
{ |
{ |
61 |
FT_Error error = FT_Err_Ok; |
FT_Error error = AF_Err_Ok; |
62 |
FT_Face face = globals->face; |
FT_Face face = globals->face; |
63 |
FT_CharMap old_charmap = face->charmap; |
FT_CharMap old_charmap = face->charmap; |
64 |
FT_Byte* gscripts = globals->glyph_scripts; |
FT_Byte* gscripts = globals->glyph_scripts; |
77 |
* Ignore this error; we simply use Latin as the standard |
* Ignore this error; we simply use Latin as the standard |
78 |
* script. XXX: Shouldn't we rather disable hinting? |
* script. XXX: Shouldn't we rather disable hinting? |
79 |
*/ |
*/ |
80 |
error = FT_Err_Ok; |
error = AF_Err_Ok; |
81 |
goto Exit; |
goto Exit; |
82 |
} |
} |
83 |
|
|
220 |
AF_ScriptMetrics metrics = NULL; |
AF_ScriptMetrics metrics = NULL; |
221 |
FT_UInt index; |
FT_UInt index; |
222 |
AF_ScriptClass clazz; |
AF_ScriptClass clazz; |
223 |
FT_Error error = 0; |
FT_Error error = AF_Err_Ok; |
224 |
|
|
225 |
|
|
226 |
if ( gindex >= globals->glyph_count ) |
if ( gindex >= globals->glyph_count ) |
227 |
{ |
{ |
228 |
error = FT_Err_Invalid_Argument; |
error = AF_Err_Invalid_Argument; |
229 |
goto Exit; |
goto Exit; |
230 |
} |
} |
231 |
|
|