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

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

        1. qtbug33101_q2.qml
          0.6 kB
        2. qtbug33101_q2_work.qml
          0.2 kB
        3. qtbug33101_q2_fail.qml
          0.2 kB
        4. qtbug33101_q1.qml
          0.2 kB
        5. qtbug33101_diag.patch
          1 kB
        6. arial-windows.png
          arial-windows.png
          12 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes