Apache OpenOffice (AOO) Bugzilla – Issue 22098
ugly rulers with larger font sizes ...
Last modified: 2010-11-10 16:48:12 UTC
When one has a font size of ~14points or so - which looks reasonable for menus (on my display), the ruler starts to look slightly daft; this patch makes it look slightly less so ;-) --- vcl/unx/source/gdi/dtint.cxx 28 May 2003 12:33:47 -0000 1.16 +++ vcl/unx/source/gdi/dtint.cxx 4 Nov 2003 10:57:57 -0000 @@ -573,7 +564,6 @@ void DtIntegrator::GetSystemLook( const aStyleSettings.SetAppFont( aFont ); aStyleSettings.SetHelpFont( aFont ); aStyleSettings.SetMenuFont( aFont ); - aStyleSettings.SetToolFont( aFont ); aStyleSettings.SetLabelFont( aFont ); aStyleSettings.SetInfoFont( aFont ); aStyleSettings.SetRadioCheckFont( aFont ); @@ -581,6 +571,13 @@ void DtIntegrator::GetSystemLook( const aStyleSettings.SetFieldFont( aFont ); aStyleSettings.SetIconFont( aFont ); aStyleSettings.SetGroupFont( aFont ); + + // We want the tool font to be slightly smaller, + // otherwise the ruler gets horribly bloated + long nHeight = aFont.GetHeight(); + nHeight = ( nHeight + 8 ) / 2; + aFont.SetHeight( nHeight ); + aStyleSettings.SetToolFont( aFont ); } break; case ToolbarIconSize:
cp->ssa: I'm not quite satisfied with the patch. If the ruler does look bad with the current font size settings this should be taken care for in a platform independent manner. Wouldn't this patch be counterproductive for accessibility ? Please have a look at it.
I will look at it once i16682 is done. And of course it will not be done UNIX only.
Fixed in CWS vcl17. The change now affects all platforms.
ssa->ru: please verify in CWS vcl17.
.
Created attachment 73291