AGS: Also return real TTF height in TTFFontRenderer::GetTextHeight()

From upstream 5115943fce180fe3e0bd9fe3678faa2d01b6d474
This commit is contained in:
Paul Gilbert 2021-09-19 16:47:09 -07:00
parent d8335ed435
commit 9d9080ffda

View File

@ -61,7 +61,7 @@ int TTFFontRenderer::GetTextWidth(const char *text, int fontNumber) {
}
int TTFFontRenderer::GetTextHeight(const char *text, int fontNumber) {
return alfont_text_height(_fontData[fontNumber].AlFont);
return alfont_get_font_real_height(_fontData[fontNumber].AlFont);
}
void TTFFontRenderer::RenderText(const char *text, int fontNumber, BITMAP *destination, int x, int y, int colour) {