ref: 1dcf3333fc7d0b0077aff23bf5278cbd45b9d74d
parent: f4ffee2c99ddc87fe2cfca60f23f253ea2a81de6
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Sep 6 15:49:36 EDT 2020
Simplify some font logic
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -968,7 +968,7 @@
{
glyph->unicode_value = unicode_value;
glyph->x = font_object->face->glyph->bitmap_left;
- glyph->y = (FT_MulFix(font_object->face->ascender, font_object->face->size->metrics.y_scale) + (64 / 2)) / 64 - font_object->face->glyph->bitmap_top;
+ glyph->y = (font_object->face->size->metrics.ascender + (64 / 2)) / 64 - font_object->face->glyph->bitmap_top;
glyph->x_advance = font_object->face->glyph->advance.x / 64;
FT_Bitmap bitmap;