Kaydet (Commit) 6510fdfb authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Tomaž Vajngerl

Increase font size when drawing from widget definition

Change-Id: I983dde507758a42c6ce421ea970b6e5d54c5dcae
Reviewed-on: https://gerrit.libreoffice.org/68826
Tested-by: Jenkins
Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
üst 0db0c1ed
......@@ -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;
......
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