[Interest] all caps font on android 8

maitai maitai at virtual-winds.org
Sat Apr 14 08:51:45 CEST 2018


Hi Christoph,

I am afraid I don't remember all the details but I think I ended up 
adding a font dialog in the app main settings, and the user succeeded to 
find a more suitable font.

I can also see in my code stuff like

     QFont def = qApp->font();
     if(!Settings::getSetting(defaultFontName).toString().isEmpty())
         def = QFont(Settings::getSetting(defaultFontName).toString());
     def.setHintingPreference(QFont::PreferNoHinting);
     def.setPixelSize(QFontInfo(fapp).pixelSize());
     def.setCapitalization(QFont::MixedCase);
     QApplication::setFont(def);
     QApplication::setFont(def, "QWidget"); //important

which as I remember are coming from that story.

Hope that helps,
Philippe.

Le 14-04-2018 08:39, Christoph Keller a écrit :
> Hi Philippe,
> 
> I received the same bug report from a user. Have you found a
> solution/cause? I haven't found anything by googling around, just your
> mailing list entry.
> 
> Just for the statistics: QtQuickControls 2 application with Qt 5.10.1;
> User has a OnePlus 3 running Android 8.0.0. Other 8.x devices from
> Sony or Google Pixel don't show this bug.
> 
> Greetings,
> Christoph
> 
> 
> On 14.02.18 22:43, maitai wrote:
>> Hi all,
>> 
>> I have a user complaining that all fonts (dialog, QGraphicsScene, etc) 
>> are in capital letters on Android 8
>> 
>> It's a QWidget-based application, qt 5.9.4
>> 
>> I have send him some attempts to correct this, in other words forcing 
>> each and every setFont with a font set with 
>> setCapitalization(QFont::MixedCase);
>> 
>> Same result, all fonts are capitalized.
>> 
>> At start I force (in java) theme to be 
>> "Theme_Holo_NoActionBar_Fullscreen"
>> 
>> Is it linked to Android 8 (which I don't have here) ? Any idea?
>> 
>> Philippe.
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list