Show unknown characters as '?' in freetype fonts
This commit is contained in:
parent
083e5841aa
commit
9f0f07885d
1 changed files with 3 additions and 0 deletions
|
|
@ -185,6 +185,9 @@ namespace psemek::fonts
|
|||
else
|
||||
{
|
||||
glyph_id = FT_Get_Char_Index(face, ch);
|
||||
if (glyph_id == 0)
|
||||
glyph_id = FT_Get_Char_Index(face, '?');
|
||||
|
||||
glyph_mapping_[ch] = glyph_id;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue