From 51badb0ca65d4429a3e01a906975d1362ec0479b Mon Sep 17 00:00:00 2001 From: skejeton Date: Sun, 23 Oct 2022 22:29:21 +0600 Subject: [PATCH] Fix wonky font. (#108) --- src/font.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/font.c b/src/font.c index 49fc2489..cb03f581 100644 --- a/src/font.c +++ b/src/font.c @@ -162,13 +162,6 @@ static f_glyph f_iterator_next_glyph(f_iterator *iter) { rect.x += iter->initX; rect.y += iter->initY; - // NOTE(skejeton): Fixes wonkiness in nearest neighbour scale, - // I highly doubt this would be desired in cases of precision however.. - rect.x = floor(rect.x); - rect.y = floor(rect.y); - rect.w = floor(rect.w); - rect.h = floor(rect.h); - th_quad q = {0}; q.v[0] = (th_vf2){{rect.x, rect.y}}; q.v[1] = (th_vf2){{rect.x+rect.w, rect.y}}; @@ -246,7 +239,7 @@ th_font *th_font_load(char *path, double size, uint32_t filter) { font->scale = scale; // scale font->ascent = ascent; // ascent - font->descent = descent; // ascent + font->descent = descent; // descent } return font;