shithub: cstory

Download patch

ref: 729565b5cac80dbfb10ff215c5d724a4556b766c
parent: b0974c3def80bf7cec6dffcbc4be7653eb03cecb
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Sep 17 22:05:37 EDT 2020

Might as well not obscure the code

--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -1082,10 +1082,10 @@
 			const Glyph *local_glyph = &font->local_glyphs[index];
 
 			glyph->unicode_value = local_glyph->unicode_value;
-			glyph->width = local_glyph->width;
-			glyph->height = local_glyph->height;
-			glyph->x_offset = local_glyph->x_offset;
-			glyph->y_offset = local_glyph->y_offset;
+			glyph->width = font->glyph_slot_width;
+			glyph->height = font->glyph_slot_height;
+			glyph->x_offset = 0;
+			glyph->y_offset = 0;
 			glyph->x_advance = local_glyph->x_advance;
 
 			RenderBackend_UploadGlyph(font->atlas, glyph->x, glyph->y, &font->image_buffer[local_glyph->y * font->image_buffer_width + local_glyph->x], glyph->width, glyph->height, font->image_buffer_width);