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.
I managed to reproduce this on desktop with the following code:
import QtQuick 2.3
import Ubuntu.Components 1.2
MainView { Name: "com.ubuntu. chinese- font"
objectName: "test"
application
id: mainView olbar: false onCompleted: pageStack. push(mainPage) ;
width: units.gu(50)
height: units.gu(67)
// useDeprecatedTo
Component.
Page {
id: mainPage
objectName: "mainPage"
title: i18n.tr("系统设置")
visible: true
Label {
anchors. centerIn: parent
fontSize: "x-large" // different fontSizes do not have the bug
text: "系统设置"
}
}
}
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.