Kaydet (Commit) cb151051 authored tarafından Bernhard Widl's avatar Bernhard Widl Kaydeden (comit) Samuel Mehrbrodt

tdf#113444 removed capping of default font size

Change-Id: Ic2ef7eeea7dd9306b57d55952ab716d6255f9576
Reviewed-on: https://gerrit.libreoffice.org/43605Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 08a690cf
...@@ -153,18 +153,9 @@ void Window::ImplUpdateGlobalSettings( AllSettings& rSettings, bool bCallHdl ) ...@@ -153,18 +153,9 @@ void Window::ImplUpdateGlobalSettings( AllSettings& rSettings, bool bCallHdl )
ImplGetFrame()->UpdateSettings( rSettings ); ImplGetFrame()->UpdateSettings( rSettings );
StyleSettings aStyleSettings = rSettings.GetStyleSettings(); StyleSettings aStyleSettings = rSettings.GetStyleSettings();
// #97047: Force all fonts except Menu and Help to a fixed height
// to avoid UI scaling due to large fonts
// - but allow bigger fonts on bigger screens (i16682, i21238)
// dialogs were designed to fit 800x600 with an 8pt font, so scale accordingly
int maxFontheight = 9; // #107886#: 9 is default for some asian systems, so always allow if requested
if( GetDesktopRectPixel().getHeight() > 600 )
maxFontheight = (int) ((( 8.0 * (double) GetDesktopRectPixel().getHeight()) / 600.0) + 1.5);
vcl::Font aFont = aStyleSettings.GetMenuFont(); vcl::Font aFont = aStyleSettings.GetMenuFont();
int defFontheight = aFont.GetFontHeight(); int defFontheight = aFont.GetFontHeight();
if( defFontheight > maxFontheight )
defFontheight = maxFontheight;
// if the UI is korean, chinese or another locale // if the UI is korean, chinese or another locale
// where the system font size is known to be often too small to // where the system font size is known to be often too small to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment