#193 Borked fonts and missing italic/bold

beta 1
accepted
nobody
font (2)
2014-08-22
2012-04-24
TomasL
No

Using alpha3 update4, there is still an issue about fonts and corresponding formatting:

  1. On some devices (Samsung Nexus with Ice Cream Sandwich), some Scandinavian characters (ÅåÄäÖö) are shown as squares. Non-necessitas apps view them correctly.

  2. On some devices (Samsung Galaxy S2 with Ice Cream Sandwich), setting bold or italic on a QLabel does not work on any characters, except for on the characters mentioned in point 1.

On e.g. HTC HD2 everything is shown as it's supposed to, showing all characters, both with normal, italic and bold font.

Here's the test code:

QString strTest = "Works:ÆæØø Does not work: ÅåÄäÖö";
QLabel *lbltext = new QLabel(strTest, this);

QLabel *lbltextitalic = new QLabel(strTest, this);
QFont fontItalic(lbltextitalic->font());
fontItalic.setItalic(true);
lbltextitalic->setFont(fontItalic);

QLabel *lbltextbold = new QLabel(strTest, this);
QFont fontBold(lbltextbold->font());
fontBold.setBold(true);
lbltextbold->setFont(fontBold);

QGridLayout *layout = new QGridLayout(this);
layout->addWidget(lbltext, 1, 1);
layout->addWidget(lbltextitalic, 2, 1);
layout->addWidget(lbltextbold, 3, 1);
this->setLayout(layout);

The attached screenshots show this on the three mentioned devices.

1 Attachments

Discussion

  • BogDan Vatra
    BogDan Vatra
    2012-04-25

    • status: open --> accepted
    • milestone: unstable --> beta 1
     
  • BogDan Vatra
    BogDan Vatra
    2012-04-25

    Please pull the fonts from your device (Samsung Nexus) and attach them to this ticket.
    $ adb pull /system/fonts .

     
  • TomasL
    TomasL
    2012-04-25

    Complete font folder is attached here. Thanks :)