aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/graphics/text.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/graphics/text.c b/src/graphics/text.c
index e872360..0280edb 100644
--- a/src/graphics/text.c
+++ b/src/graphics/text.c
@@ -56,6 +56,7 @@ static void mgl_text_for_each_codepoint(const mgl_text *self, codepoint_loop_cal
} else if(codepoint == '\n') {
kerning = 0.0f;
glyph_width = 0.0f;
+ glyph.size = (mgl_vec2i){ (int)glyph_width, (int)self->font->character_size };
} else {
if(mgl_font_get_glyph(self->font, codepoint, &glyph) == 0) {
kerning = mgl_font_get_kerning(self->font, prev_codepoint, codepoint);