From cac754b9f5d4695bd6416ac94fcab22423a854f9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 15 Feb 2022 23:36:15 +0100 Subject: Render missing glyphs as a crossed out box --- src/graphics/font.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/graphics') 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; -- cgit v1.2.3