Comment 9 for bug 1475205

Revision history for this message
Tim Peeters (tpeeters) wrote : Re: Random Chinese character missing in header with 50 GU

I managed to reproduce this on desktop with the following code:

import QtQuick 2.3
import Ubuntu.Components 1.2

MainView {
    objectName: "test"
    applicationName: "com.ubuntu.chinese-font"

    id: mainView
    width: units.gu(50)
    height: units.gu(67)
    // useDeprecatedToolbar: false
    Component.onCompleted: pageStack.push(mainPage);
    Page {
        id: mainPage
        objectName: "mainPage"
        title: i18n.tr("系统设置")
        visible: true

        Label {
            anchors.centerIn: parent
            text: "系统设置"
            fontSize: "x-large" // different fontSizes do not have the bug
        }
    }
}

As reported in the dupe bug https://bugs.launchpad.net/ubuntu/+source/qtdeclarative-opensource-src/+bug/1462982
the bug *only* occurs with a grid unit size of 23, so run the app with:
GRID_UNIT_PX=23 qmlscene test.qml

As you can see, I managed to reproduce it with a Label (not in the header). The bug only appears when fontSize: "x-large" is set.