Android: Text size is much smaller compared to Desktop Application (QML)



  • I made a QT Quick Application, which uses a fixed size for my developer tablet (the tablets resolution). So if I run this application on ubuntu, it is a window with the same size that the android application has on the tablet.
    For manipulating the size of text, I use "font.pointSize". But the size of the text on the desktop (ubuntu) and the android app is different. On the android app it is smaller.

    Is this an issue with android apps? Should I use another attribute for text size?



  • Ok, kind of fixed when using pixelSize instead of pointSize. There still seems to be a slight difference, but it is barely noticeable.



  • Offtopic
    Hmm...
    Digia's Quick Forecast has small font size on my device(LG P350). Does it have same problem?..



  • The default font size of a QTexteditor looks fine on both Linux and Android. In both cases, the font appear with almost equal size.

    See "this photo":http://stefanfrings.de/temp/DSCF0431.JPG

    On Linux, the default is pointSize 11.
    On Android, the default is pixelSize 24, which equals pointSize 17.

    When I create a new QFont with any fixed pointSize value (e.g. 12), then the text apears much smaller on Android than on Linux.

    Shouldn't be the point size device-independent? Is this a bug or did I miss something?

    Qt 5.4, Android 4.2, Ubuntu 14.04



  • The default font size of a QTexteditor looks fine on both Linux and Android. In both cases, the font appear with almost equal size.

    See "this photo":http://stefanfrings.de/temp/DSCF0431.JPG

    On Linux, the default is pointSize 11.
    On Android, the default is pixelSize 24, which equals pointSize 17.

    When I create a new QFont with any fixed pointSize value (e.g. 12), then the text apears much smaller on Android than on Linux.

    Shouldn't be the point size device-independent? Is this a bug or did I miss something?

    Qt 5.4, Android 4.2, Ubuntu 14.04



  • I opened a bug report, because I'm 95% sure that this does not work as intended.



  • I opened a bug report, because I'm 95% sure that this does not work as intended.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.