modified to load fonts correctly.
This commit is contained in:
@@ -236,7 +236,7 @@ static VFontData *objfnt_to_ftvfontdata(PackedFile * pf)
|
|||||||
test[1] = '\0'; //to print character
|
test[1] = '\0'; //to print character
|
||||||
|
|
||||||
glyph_index = FT_Get_Char_Index( face, i );
|
glyph_index = FT_Get_Char_Index( face, i );
|
||||||
err = FT_Load_Glyph(face, glyph_index, FT_LOAD_NO_SCALE);
|
err = FT_Load_Glyph(face, glyph_index, FT_LOAD_NO_SCALE | FT_LOAD_NO_BITMAP);
|
||||||
glyph = face->glyph;
|
glyph = face->glyph;
|
||||||
ftoutline = glyph->outline;
|
ftoutline = glyph->outline;
|
||||||
|
|
||||||
@@ -449,7 +449,7 @@ static int check_freetypefont(PackedFile * pf)
|
|||||||
if ( err ) { return 0; }
|
if ( err ) { return 0; }
|
||||||
*/
|
*/
|
||||||
glyph_index = FT_Get_Char_Index( face, 'A' );
|
glyph_index = FT_Get_Char_Index( face, 'A' );
|
||||||
err = FT_Load_Glyph(face, glyph_index, FT_LOAD_NO_SCALE);
|
err = FT_Load_Glyph(face, glyph_index, FT_LOAD_NO_SCALE | FT_LOAD_NO_BITMAP);
|
||||||
if(err) success = 0;
|
if(err) success = 0;
|
||||||
else {
|
else {
|
||||||
glyph = face->glyph;
|
glyph = face->glyph;
|
||||||
|
Reference in New Issue
Block a user