diff options
Diffstat (limited to 'src/client/fontengine.cpp')
-rw-r--r-- | src/client/fontengine.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/client/fontengine.cpp b/src/client/fontengine.cpp index 61d52cc2f..a55420846 100644 --- a/src/client/fontengine.cpp +++ b/src/client/fontengine.cpp @@ -186,6 +186,21 @@ unsigned int FontEngine::getDefaultFontSize() return m_default_size[m_currentMode]; } +unsigned int FontEngine::getFontSize(FontMode mode) +{ + if (m_currentMode == FM_Simple) { + if (mode == FM_Mono || mode == FM_SimpleMono) + return m_default_size[FM_SimpleMono]; + else + return m_default_size[FM_Simple]; + } + + if (mode == FM_Unspecified) + return m_default_size[FM_Standard]; + + return m_default_size[mode]; +} + /******************************************************************************/ void FontEngine::readSettings() { |