--- SDL_ttf.c.orig 2006-04-01 02:21:09.000000000 +0900 +++ SDL_ttf.c 2006-04-01 02:28:57.000000000 +0900 @@ -421,6 +421,7 @@ FT_GlyphSlot glyph; FT_Glyph_Metrics* metrics; FT_Outline* outline; + FT_Int32 flags = FT_LOAD_DEFAULT; if ( !font || !font->face ) { return FT_Err_Invalid_Handle; @@ -432,7 +433,13 @@ if ( ! cached->index ) { cached->index = FT_Get_Char_Index( face, ch ); } - error = FT_Load_Glyph( face, cached->index, FT_LOAD_DEFAULT ); + /* if you want to load outlined glyph image, + * embedded bitmap is prevented from loading. + * */ + if ( FT_IS_SCALABLE( face ) && !(want & CACHED_BITMAP) ) { + flags |= FT_LOAD_NO_BITMAP; + } + error = FT_Load_Glyph( face, cached->index, flags ); if( error ) { return error; }