Ask / Submit
3

[SDK] Can't change font size in emulator

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

Direc gravatar image

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

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 +0200 )edit

2 Answers

Sort by » oldest newest most voted
3

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

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 +0200 )edit
0

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

Direc gravatar image

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

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 +0200

Seen: 147 times

Last updated: Feb 12