MycroftAI / skill-wiki

Query Wikipedia articles
https://mycroft.ai/skills
Apache License 2.0
18 stars 33 forks source link

Font size Hack does not work on Mark-2 prototype #43

Closed guhl closed 3 years ago

guhl commented 4 years ago

On my Mark-2 prototype using the BOM display the hack for the fontsize does not work well (The font is super small). I fixed this differently in WikipediaDelegate.qml: ... import QtQuick.Window 2.2 ... font.pointSize: Math.floor(20 * 4 / Screen.pixelDensity) ...

This provides the same font size on Neo running in a VirtualMachine and on the device.

notmart commented 4 years ago

can you try starting the gui app with the following environmant variable? QT_SCALE_FACTOR=2 (or even higher numbers if necessary)

guhl commented 4 years ago

can you try starting the gui app with the following environmant variable? QT_SCALE_FACTOR=2 (or even higher numbers if necessary)

Thanks for the feedback but: while QT_SCALE_FACTOR=2 does give a reasonable font size in this wiki skill it changes the scaling of all GUI elements and for example the clock of the mark2 idle screen now only shows the last digit of the hour and the first of the minute (atm it shows 5:0 because is is 15:04) I would not count this a proper fix.

notmart commented 4 years ago

is it using qeglfs QPA?

notmart commented 4 years ago

in eglfs may also help playing with QT_QPA_EGLFS_PHYSICAL_WIDTH (and height) in case the proper size hasn't been detected

krisgesling commented 3 years ago

Hack removed in #54

Still plenty of work to be done on the UI of this Skill but these are covered in other issues.