From cc01b757d7d0b292dc1cec159e3e553c0d7b18aa Mon Sep 17 00:00:00 2001 From: cheapie Date: Wed, 7 Jan 2015 21:56:24 -0600 Subject: [PATCH] Disable font scaling on non-Android platforms --- src/guiFormSpecMenu.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index 80afe594a..0538c823f 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -76,6 +76,9 @@ static unsigned int font_line_height(gui::IGUIFont *font) static gui::IGUIFont *select_font_by_line_height(double target_line_height) { +#ifndef __ANDROID__ + return g_fontengine->getFont(); +#else // We don't get to directly select a font according to its // baseline-to-baseline height. Rather, we select by em size. // The ratio between these varies between fonts. The font @@ -105,6 +108,7 @@ static gui::IGUIFont *select_font_by_line_height(double target_line_height) } } return g_fontengine->getFont(target_line_height - lohgt < hihgt - target_line_height ? loreq : hireq); +#endif } GUIFormSpecMenu::GUIFormSpecMenu(irr::IrrlichtDevice* dev,