We have moved to a new Sailfish OS Forum. Please start new discussions there.
3

[SDK] Can't change font size in emulator

asked 2018-05-20 13:04:12 +0300

Direc gravatar image

updated 2018-05-28 15:39:57 +0300

jiit gravatar image

I noticed that the one thing that breaks the layout most in various SailfishOS apps is system text size. However, in the SDK emulator it is not possible to change it, because it is missing from the Settings app:

Settings > Display > Text size: Normal/Large/Huge

Could it be added to the settings in order to make developers' lives a bit easier? Or, is there already an undocumented way to change the text size?

Thank you!

edit retag flag offensive close delete

Comments

SDK 1804 is now in EA, still no such option.

(Well, it would have been really fast if it was implemented. Let's hope the next release has it...)

Direc ( 2018-06-06 23:13:45 +0300 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2018-06-07 09:23:03 +0300

martyone gravatar image

Before the settings application is extended, it is possible to modify the respective configuration value using the dconf command line tool on emulator as the user nemo:

dconf write /desktop/jolla/theme/font/sizeCategory "'normal'"
dconf write /desktop/jolla/theme/font/sizeCategory "'large'"
dconf write /desktop/jolla/theme/font/sizeCategory "'huge'"

It should be also verified that the layout works well on all kinds of devices. For this purpose it is possible to switch the device profile of the emulator from Qt Creator using menu Tools > Sailfish OS > Emulator mode... while a Sailfish OS application project is active.

edit flag offensive delete publish link more

Comments

Just what I need to get the job done. Thanks!

Direc ( 2018-06-07 09:40:42 +0300 )edit

@martyone Wasn't there an option to change font size in the emulator at some point? Now I couldn't find it any more so I just compiled my tool in the answer below...

Direc ( 2019-11-10 00:58:30 +0300 )edit

@Direc nothing that I am aware of. Thanks for the app!

martyone ( 2019-11-12 14:04:12 +0300 )edit
0

answered 2019-01-08 23:17:31 +0300

Direc gravatar image

updated 2019-02-12 00:53:58 +0300

I finally created a little app to achieve this; go grab it from https://github.com/direc85/harbour-fontsize

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2018-05-20 13:04:12 +0300

Seen: 223 times

Last updated: Feb 12 '19