diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-02-15 23:36:15 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-02-15 23:36:15 +0100 |
commit | cac754b9f5d4695bd6416ac94fcab22423a854f9 (patch) | |
tree | ee90f9233906098a2d843f4cea8dc9f584253243 /src/graphics | |
parent | 347a6fa2795a6856c1ad3d623673b62f879227c1 (diff) |
Render missing glyphs as a crossed out box
Diffstat (limited to 'src/graphics')
-rw-r--r-- | src/graphics/font.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/graphics/font.c b/src/graphics/font.c index 603b1d4..9a99f22 100644 --- a/src/graphics/font.c +++ b/src/graphics/font.c @@ -193,10 +193,6 @@ int mgl_font_get_glyph(mgl_font *self, uint32_t codepoint, mgl_font_glyph *glyph */ const int glyph_index = stbtt_FindGlyphIndex(self->font_info, codepoint); - if(glyph_index == 0) { - memset(glyph, 0, sizeof(mgl_font_glyph)); - return -1; - } const float font_scale = stbtt_ScaleForPixelHeight(self->font_info, self->character_size*GLYPH_UPSAMPLE); int advance = 0; |