summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-03-14 00:31:33 +0200
committerTor Lillqvist <tml@collabora.com>2019-09-20 12:03:39 +0200
commit82f2575a929f02fb405cb73ee6298f3ec806ebb7 (patch)
tree8587ab9caf1be5b748c59f62340da59b3befbe5c
parenttdf#127163: Add AutoRedactDoc command to the Tools menu (diff)
downloadcore-82f2575a929f02fb405cb73ee6298f3ec806ebb7.tar.gz
core-82f2575a929f02fb405cb73ee6298f3ec806ebb7.zip
Use smaller default font on iOS (in practice used for dialogs in the iOS app)
I suspected all the time that just one single-line change will be what is needed to make the dialogs look mostly sane. (Especially Format > Character... and Format > Paragraph...) No exotic hacks were needed after all, even though I experimented with more or less crazy ones for several days before I thought of changing this font size 14 to something smaller. The problem was apparently simply that with the larger default font, the dialog controls didn't fit properly in the space provided. Especially the four combo boxes on one line in the Font page were problematic. (It has three such lines of combo boxes.) Apparently the dialog machinery isn't especially good at reducing width of controls. The Size control shrunk to (almost?) zero width and was not visible, the Style control was too narrow to be usable, but the Language control was left as unnecessarily wide. Change-Id: If5675856345be2ae502346e8c097ef04216e2986 (cherry picked from commit 96dce784c7971f22dcf44b66a242c22b455e32a3) Reviewed-on: https://gerrit.libreoffice.org/79183 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r--vcl/ios/iosinst.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/ios/iosinst.cxx b/vcl/ios/iosinst.cxx
index cae091bd1d88..596808a0c9f9 100644
--- a/vcl/ios/iosinst.cxx
+++ b/vcl/ios/iosinst.cxx
@@ -108,7 +108,7 @@ public:
virtual void UpdateSettings( AllSettings &rSettings ) override
{
// Clobber the UI fonts
- vcl::Font aFont( OUString( "Helvetica" ), Size( 0, 14 ) );
+ vcl::Font aFont( OUString::fromUtf8( [[[UIFont systemFontOfSize:7] familyName] UTF8String] ), Size( 0, 7 ) );
StyleSettings aStyleSet = rSettings.GetStyleSettings();
aStyleSet.SetAppFont( aFont );