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

can't display chinese with bitmap fonts in QML

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes