summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-03-29 18:08:30 +0200
committerTor Lillqvist <tml@collabora.com>2019-03-29 18:13:17 +0200
commit685e91a7aee4a4acc60e33bf1313a394fd15b1ff (patch)
tree45e3e9bb3210835f0a6f0063ed9a886b54a6953a /vcl
parente608dca4f4c99631ebd4d4dfa02f0e28a625cdba (diff)
Avoid dialog headings showing up as some serif font in the iOS app
Apparently the use of [UIFont systemFontOfSize:10] familyName] to get a default font family name is a bad idea. Presumably the return value from this, ".SF UI Text", is matched against the list of font family names enumerated from the system. (The "SF" apparently stands for "San Francisco".) That ".SF UI Text" is not among them, so maybe vcl chooses some arbitrary other font instead that happens to be a serif one? If we instead use "Helvetica", at least we get a sans-serif font, even if it doesn't match the system UI font exactly. Change-Id: I7ff39d8e7893ce3c27f3f12d227f87209bbc7952
Diffstat (limited to 'vcl')
-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 35d1f400745f..938fb1a4c199 100644
--- a/vcl/ios/iosinst.cxx
+++ b/vcl/ios/iosinst.cxx
@@ -107,7 +107,7 @@ public:
virtual void UpdateSettings( AllSettings &rSettings ) override
{
// Clobber the UI fonts
- vcl::Font aFont( OUString::fromUtf8( [[[UIFont systemFontOfSize:10] familyName] UTF8String] ), Size( 0, 10 ) );
+ vcl::Font aFont( "Helvetica", Size( 0, 10 ) );
StyleSettings aStyleSet = rSettings.GetStyleSettings();
aStyleSet.SetAppFont( aFont );