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

Text does not show in QtQuick 2.0 when set font.family to "Arial". The code works in QtQuick 1.0.

    XMLWordPrintable

Details

    Description

      import QtQuick 2.0
      
      Rectangle {
          id: item
          width: 200
          height: 200
      
          Text {
              anchors.centerIn: parent
              font.family: "Arial"//"微软雅黑" is OK.
              text: "中文"
          }
      }
      

      Attachments

        1. arial-windows.png
          arial-windows.png
          12 kB
        2. qtbug33101_diag.patch
          1 kB
        3. qtbug33101_q1.qml
          0.2 kB
        4. qtbug33101_q2_fail.qml
          0.2 kB
        5. qtbug33101_q2_work.qml
          0.2 kB
        6. qtbug33101_q2.qml
          0.6 kB

        Issue Links

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

          Activity

            People

              ylopes Yoann Lopes
              garlicgreens Zhuangping Xie
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes