Format renderer font scale code to be actually readable

This commit is contained in:
Jan200101
2024-11-27 20:53:34 +08:00
committed by takase1121
parent 7c68b20115
commit ce3d4de101
-2
View File
@@ -401,8 +401,6 @@ static int font_set_face_metrics(RenFont *font, FT_Face face) {
if(FT_IS_SCALABLE(face)) {
font->height = (short)((face->height / (float)face->units_per_EM) * font->size);
font->baseline = (short)((face->ascender / (float)face->units_per_EM) * font->size);
if(FT_IS_SCALABLE(face))
font->underline_thickness = (unsigned short)((face->underline_thickness / (float)face->units_per_EM) * font->size);
} else {
font->height = (short) font->face->size->metrics.height / 64.0f;