[Android-development] incorrect font in Qt/QML app on OnePlus Android device
Dirk Hohndel
dirk at hohndel.org
Fri Sep 20 19:47:35 CEST 2019
Thanks Aleix,
My Google-Fu was insufficient to find those bug reports. The first one clearly matches my experience.
Thiago, any idea whom to poke to get someone to look at this?
I'll look into bundling a font with the app as a workaround, but that's of course not really a "solution".
Thank you so much for your help!!!
/D
> On Sep 20, 2019, at 9:15 AM, Aleix Pol <aleixpol at kde.org> wrote:
>
> Hi Dirk,
> It looks like a problem in Qt:
> https://bugreports.qt.io/browse/QTBUG-69494 <https://bugreports.qt.io/browse/QTBUG-69494>
>
> Seems like Qt chokes on the font that OnePlus provides by default.
> I see there's other issues with fonts related to OnePlus:
> https://bugreports.qt.io/browse/QTBUG-47165 <https://bugreports.qt.io/browse/QTBUG-47165>
>
> Aleix
>
>
> On Thu, Sep 19, 2019 at 7:51 PM Dirk Hohndel <dirk at hohndel.org <mailto:dirk at hohndel.org>> wrote:
>
> This is a problem we've had for quite a while. I finally broke down and bought a used OnePlus 6 phone in order to play with it myself.
> And I'm completely stuck.
>
> Here's the background. Subsurface-mobile is a Qt/QML application that provides a dive log on Android (and iOS).
> It uses the default font (which on Android is Roboto), but I also tried various ways of setting a different font, none of which appear to have any impact.
>
> On all other Android devices that I have personally tried this on (and that thousands of users use it on) we get the correct font. But not on this one.
>
> I have asked on the OnePlus forum about this (https://forums.oneplus.com/threads/developer-question-third-party-app-shows-wrong-font.1105627/ <https://forums.oneplus.com/threads/developer-question-third-party-app-shows-wrong-font.1105627/>) but I'm wondering if other Qt/Android developers have made similar experiences with people running their apps on OnePlus devices.
>
> In the log I see two things that seem relevant:
>
> First, just as the app starts, I get an odd warning:
>
> 09-19 11:34:28.054 2681 28439 I FontsPackageChangeOp: Package org.subsurfacedivelog.mobile has no metadata
>
> I don't see that same warning when running the app on my other Android devices where I get the correct font.
>
> Second, the app seems to THINK that it gets the correct font:
>
> 09-19 11:36:01.671 28446 28538 D /android/subsurface/qt-models/messagehandlermodel.cpp: INFO: Detected OnePlus device; Qt reports default font is "Roboto"
>
> Yet this is how things look
>
>
>
> (and yes, the layout is completely messed up as well - I'm suspecting that the incorrect font has something to do with that and am investigating that separately)
>
> In case you are wondering, this is how it SHOULD look:
>
>
>
> Thanks for any help that you can give.
>
> /D
> _______________________________________________
> Android-development mailing list
> Android-development at qt-project.org <mailto:Android-development at qt-project.org>
> https://lists.qt-project.org/listinfo/android-development <https://lists.qt-project.org/listinfo/android-development>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20190920/81deb012/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_20190919-113758.jpeg
Type: image/jpeg
Size: 33314 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20190920/81deb012/attachment-0001.jpeg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_20190920-024923.png
Type: image/png
Size: 66356 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20190920/81deb012/attachment-0001.png>
More information about the Android-development
mailing list