From 683d23e3ba503c551cec851d231060714cdc48bf Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 4 Apr 2022 10:38:43 -0400 Subject: [PATCH] Changed calculation to use ascender, which should work better. (#912) --- src/renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer.c b/src/renderer.c index c2fa233e..347bb0c7 100644 --- a/src/renderer.c +++ b/src/renderer.c @@ -195,7 +195,7 @@ RenFont* ren_font_load(const char* path, float size, ERenFontAntialiasing antial font->face = face; font->size = size; font->height = (short)((face->height / (float)face->units_per_EM) * font->size); - font->baseline = (short)((face->bbox.yMax / (float)face->units_per_EM) * font->size); + font->baseline = (short)((face->ascender / (float)face->units_per_EM) * font->size); font->antialiasing = antialiasing; font->hinting = hinting; font->style = style;