/[freetype]/freetype2/src/autofit/afglobal.c
ViewVC logotype

Diff of /freetype2/src/autofit/afglobal.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by wl, Thu Mar 3 17:09:07 2005 UTC revision 1.7 by wl, Wed Mar 23 16:45:24 2005 UTC
# Line 19  Line 19 
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 */
# Line 57  Line 58 
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;
# Line 76  Line 77 
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    
# Line 219  Line 220 
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    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26