aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/newgui.h')
-rw-r--r--gui/newgui.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/newgui.h b/gui/newgui.h
index 8b8babe27c..9e46738162 100644
--- a/gui/newgui.h
+++ b/gui/newgui.h
@@ -73,10 +73,10 @@ public:
Theme *theme() { return _theme; }
Eval *evaluator() { return _theme->_evaluator; }
- const Graphics::Font &getFont() const { return *(_theme->getFont()); }
- int getFontHeight() const { return _theme->getFontHeight(); }
- int getStringWidth(const Common::String &str) const { return _theme->getStringWidth(str); }
- int getCharWidth(byte c) const { return _theme->getCharWidth(c); }
+ const Graphics::Font &getFont(Theme::kFontStyle style = Theme::kFontStyleBold) const { return *(_theme->getFont(style)); }
+ int getFontHeight(Theme::kFontStyle style = Theme::kFontStyleBold) const { return _theme->getFontHeight(style); }
+ int getStringWidth(const Common::String &str, Theme::kFontStyle style = Theme::kFontStyleBold) const { return _theme->getStringWidth(str, style); }
+ int getCharWidth(byte c, Theme::kFontStyle style = Theme::kFontStyleBold) const { return _theme->getCharWidth(c, style); }
WidgetSize getWidgetSize();