fix loading of truetype fonts on linux

This commit is contained in:
2003-05-08 17:27:43 +00:00
parent ad0bf55843
commit cc8460b1e7

View File

@@ -449,7 +449,7 @@ static int check_freetypefont(PackedFile * pf)
if ( err ) { return 0; }
*/
glyph_index = FT_Get_Char_Index( face, 'A' );
err = FT_Load_Glyph(face, glyph_index, FT_LOAD_NO_BITMAP );
err = FT_Load_Glyph(face, glyph_index, FT_LOAD_NO_SCALE);
if(err) success = 0;
else {
glyph = face->glyph;
@@ -490,4 +490,4 @@ VFontData *BLI_vfontdata_from_freetypefont(PackedFile *pf)
return vfd;
}
#endif // WITH_FREETYPE2
#endif // WITH_FREETYPE2