From 27994b026b191aca5dbbebe1d4b4172d701e3cd3 Mon Sep 17 00:00:00 2001 From: danij Date: Wed, 4 Jan 2012 06:33:51 +0000 Subject: [PATCH] Game Menu: Use a better string for calculating line height --- doomsday/plugins/common/src/hu_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doomsday/plugins/common/src/hu_lib.c b/doomsday/plugins/common/src/hu_lib.c index 1609943259..afe6b20554 100644 --- a/doomsday/plugins/common/src/hu_lib.c +++ b/doomsday/plugins/common/src/hu_lib.c @@ -781,7 +781,8 @@ static void applyPageLayout(mn_page_t* page) // Calculate leading/line offset. FR_SetFont(MNPage_PredefinedFont(page, MENU_FONT1)); - lineHeight = FR_CharHeight('Q'); + /// \kludge We cannot yet query line height from the font. + lineHeight = FR_TextHeight("WyQ"); lineOffset = MAX_OF(1, .5f + lineHeight * .08f); Rect_SetXY(page->geometry, 0, 0);