Changed calculation to use ascender, which should work better. (#912)
This commit is contained in:
+1
-1
@@ -195,7 +195,7 @@ RenFont* ren_font_load(const char* path, float size, ERenFontAntialiasing antial
|
|||||||
font->face = face;
|
font->face = face;
|
||||||
font->size = size;
|
font->size = size;
|
||||||
font->height = (short)((face->height / (float)face->units_per_EM) * font->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->antialiasing = antialiasing;
|
||||||
font->hinting = hinting;
|
font->hinting = hinting;
|
||||||
font->style = style;
|
font->style = style;
|
||||||
|
|||||||
Reference in New Issue
Block a user