Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Haarsma <phaseIV@zonnet.nl>2003-05-26 16:43:47 +0400
committerRob Haarsma <phaseIV@zonnet.nl>2003-05-26 16:43:47 +0400
commit69272f0387a4f099e3c9f7018729ea2cf3edcf25 (patch)
treefb68cc55ccb80535fe30beaff8999f0339ad2f50
parenta9fa245cd6a61ebb3e80583150784c3944a4c0b0 (diff)
modified to load fonts correctly.
-rw-r--r--source/blender/blenlib/intern/freetypefont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/freetypefont.c b/source/blender/blenlib/intern/freetypefont.c
index d5a19ac12e4..085ddecc08f 100644
--- a/source/blender/blenlib/intern/freetypefont.c
+++ b/source/blender/blenlib/intern/freetypefont.c
@@ -236,7 +236,7 @@ static VFontData *objfnt_to_ftvfontdata(PackedFile * pf)
test[1] = '\0'; //to print character
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;
ftoutline = glyph->outline;
@@ -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_SCALE);
+ err = FT_Load_Glyph(face, glyph_index, FT_LOAD_NO_SCALE | FT_LOAD_NO_BITMAP);
if(err) success = 0;
else {
glyph = face->glyph;