~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/blenlib/intern/freetypefont.c

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: freetypefont.c,v 1.9 2004/01/25 13:50:54 phase Exp $
 
2
 * $Id: freetypefont.c,v 1.10 2005/03/14 20:10:22 lukep Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
89
89
        const char *fontname;
90
90
        float scale, height;
91
91
        float dx, dy;
92
 
        int i, j, k, l, m;
 
92
        int i, j, k, l, m =0;
93
93
 
94
94
        // load the freetype font
95
95
        err = FT_New_Memory_Face( library,
135
135
 
136
136
        // extract generic ascii character range
137
137
        for(i = myMIN_ASCII; i <= myMAX_ASCII; i++) {
138
 
                int  *npoints;  //total points of each contour
139
 
                int  *onpoints; //num points on curve
 
138
                int  *npoints = NULL;   //total points of each contour
 
139
                int  *onpoints = NULL;  //num points on curve
140
140
 
141
141
                glyph_index = FT_Get_Char_Index( face, i );
142
142
                err = FT_Load_Glyph(face, glyph_index, FT_LOAD_NO_SCALE | FT_LOAD_NO_BITMAP);