Show box character instead of dot

develop
kaetemi 4 years ago
parent 81143cdf43
commit 8fc6ec3b35

@ -307,11 +307,13 @@ uint8 *CFontGenerator::getBitmap (ucchar c, uint32 size, bool embolden, bool obl
// retrieve glyph index from character code // retrieve glyph index from character code
FT_UInt glyph_index = FT_Get_Char_Index (_Face, c); FT_UInt glyph_index = FT_Get_Char_Index (_Face, c);
/*
if (glyph_index == 0) if (glyph_index == 0)
{ {
// no glyph available, replace with a dot // no glyph available, replace with a dot
glyph_index = FT_Get_Char_Index (_Face, ucchar('.')); glyph_index = FT_Get_Char_Index (_Face, ucchar('.'));
} }
*/
// load glyph image into the slot (erase previous one) // load glyph image into the slot (erase previous one)
error = FT_Load_Glyph (_Face, glyph_index, FT_LOAD_DEFAULT); error = FT_Load_Glyph (_Face, glyph_index, FT_LOAD_DEFAULT);

Loading…
Cancel
Save