Font rendering bug on some Android devices!?
-
I also just got a bugreport from a user with a Sony Xperia TS running Android 4.3 that fonts are broken. At the moment I'm using a plain Text element with font.family set to Roboto and shipping the Roboto font with the app to workaround a HTC rendering bug.
There have been a lot of fixes for text rendering on Android recently and I hope that one is among them :/
I'm getting more and more reports of people with broken font rendering (so far various Huawei (P2, P6) devices, Sony Xperia TS, HTC One S (however I cannot reproduce it on that device)...
-
Hi, yeah I know the worst is we can't reproduce the bug ourselves and test possible fixes for it. :/
Another user send me a possible workaround, I have set the QML environment variable QML_USE_GLYPHCACHE_WORKAROUND to 1, that should work for some devices, but again I can't test it myself so it's hard to say.
qputenv("QML_USE_GLYPHCACHE_WORKAROUND", QByteArray("1"));
that workaround was described here: https://bugreports.qt-project.org/browse/QTBUG-34984
I think most rendering bugs are due to corrupt device drivers for OpenGL, but there is nothing we can do about it I guess.
-
I usually use native font "Droid Sans" when building Android application. It is so far so good.
-
For my app I did not specify any font explicitly, so it should use the default device font I think ( Roboto on Android?). It looked good on my devices so I thought it would be best not to set any font family at all.
[quote author="jiangcaiyang" date="1399629141"]I usually use native font "Droid Sans" when building Android application. It is so far so good.[/quote] -
@mehrdad Well the bug report https://bugreports.qt-project.org/browse/QTBUG-34984 (posted by @Xander84 here) says it is fixed. Which Qt version are you using ?