Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-33455

can't display chinese with bitmap fonts in QML

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.1.1
    • None
    • only tested on 10.8.4

      import QtQuick 2.1
      
      Rectangle {
          width: 360
          height: 360
          Text {
              anchors.bottom: parent.verticalCenter
              anchors.horizontalCenter: parent.horizontalCenter
              text: "ABC\u3401"
              font: Qt.font({family: "GB18030 Bitmap", pointSize: 24})
          }
          Text {
              id: text2
              anchors.top: parent.verticalCenter
              anchors.horizontalCenter: parent.horizontalCenter
              text: "ABC\u3401"
              font: Qt.font({family: "LiSong Pro", pointSize: 24})
          }
      }
      

      screenshot in attachment

      It can't display Chinese with the "GB18030 Bitmap" font.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            aalpert Alan Alpert
            liaqi Liang Qi
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes