From 6510fdfb1fe45b235d0cbd2b9a14379ad7c978a5 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Sun, 3 Mar 2019 13:41:28 +0100 Subject: Increase font size when drawing from widget definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I983dde507758a42c6ce421ea970b6e5d54c5dcae Reviewed-on: https://gerrit.libreoffice.org/68826 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- vcl/source/gdi/FileDefinitionWidgetDraw.cxx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'vcl') diff --git a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx index 804bddb527fe..17cf7b91615c 100644 --- a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx +++ b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx @@ -726,6 +726,29 @@ bool FileDefinitionWidgetDraw::updateSettings(AllSettings& rSettings) aStyleSet.SetToolTextColor(m_aWidgetDefinition.maToolTextColor); aStyleSet.SetFontColor(m_aWidgetDefinition.maFontColor); + vcl::Font aFont(FAMILY_SWISS, Size(0, 12)); + aFont.SetCharSet(osl_getThreadTextEncoding()); + aFont.SetWeight(WEIGHT_NORMAL); + aFont.SetFamilyName("Liberation Sans"); + aStyleSet.SetAppFont(aFont); + aStyleSet.SetHelpFont(aFont); + aStyleSet.SetMenuFont(aFont); + aStyleSet.SetToolFont(aFont); + aStyleSet.SetGroupFont(aFont); + aStyleSet.SetLabelFont(aFont); + aStyleSet.SetRadioCheckFont(aFont); + aStyleSet.SetPushButtonFont(aFont); + aStyleSet.SetFieldFont(aFont); + aStyleSet.SetIconFont(aFont); + aStyleSet.SetTabFont(aFont); + + aFont.SetWeight(WEIGHT_BOLD); + aStyleSet.SetFloatTitleFont(aFont); + aStyleSet.SetTitleFont(aFont); + + aStyleSet.SetTitleHeight(16); + aStyleSet.SetFloatTitleHeight(12); + rSettings.SetStyleSettings(aStyleSet); return true; -- cgit