diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-06-08 11:17:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-06-08 14:22:36 +0200 |
commit | 6f17d42f251bf4a20b4192c16fa007226dcf17ed (patch) | |
tree | 91f42c38aa4cefb02584d196ab6c4eb3cc36dc04 /cui | |
parent | e3f8a433799b2ccc2f16ba7691f790bd98febb16 (diff) |
tdf#119827 implement GtkBuilder "scale" property for font size
and use it for the case in charnamepage
Change-Id: I5920aa429c750e9b147cbc09a6f3814166851a8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135493
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/chardlg.cxx | 9 | ||||
-rw-r--r-- | cui/uiconfig/ui/charnamepage.ui | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx index 638643601980..226fe846ee3d 100644 --- a/cui/source/tabpages/chardlg.cxx +++ b/cui/source/tabpages/chardlg.cxx @@ -258,15 +258,6 @@ SvxCharNamePage::SvxCharNamePage(weld::Container* pPage, weld::DialogController* else if (!bShowCTL) m_xCJK_CTL->remove_page("nbCTL"); - // info at 80% font size - vcl::Font aFont(m_xWestFontTypeFT->get_font()); - Size aSize(aFont.GetFontSize()); - aSize.setHeight(aSize.Height() * 0.8); - aFont.SetFontSize(aSize); - m_xWestFontTypeFT->set_font(aFont); - m_xEastFontTypeFT->set_font(aFont); - m_xCTLFontTypeFT->set_font(aFont); - //In MacOSX the standard dialogs name font-name, font-style as //Family, Typeface //In GNOME the standard dialogs name font-name, font-style as diff --git a/cui/uiconfig/ui/charnamepage.ui b/cui/uiconfig/ui/charnamepage.ui index c4d3501e696e..54d700ecb094 100644 --- a/cui/uiconfig/ui/charnamepage.ui +++ b/cui/uiconfig/ui/charnamepage.ui @@ -309,6 +309,9 @@ <property name="width-chars">30</property> <property name="max-width-chars">30</property> <property name="xalign">0</property> + <attributes> + <attribute name="scale" value="0.8"/> + </attributes> </object> <packing> <property name="left-attach">1</property> @@ -582,6 +585,9 @@ <property name="width-chars">30</property> <property name="max-width-chars">30</property> <property name="xalign">0</property> + <attributes> + <attribute name="scale" value="0.8"/> + </attributes> </object> <packing> <property name="left-attach">1</property> @@ -830,6 +836,9 @@ <property name="width-chars">30</property> <property name="max-width-chars">30</property> <property name="xalign">0</property> + <attributes> + <attribute name="scale" value="0.8"/> + </attributes> </object> <packing> <property name="left-attach">1</property> |