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

Fontfallback is not working (Text isn't displayed with ellipsis for Certain font )

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12, 6.2.1
    • None
    • webOS

    Description

      In the qt5.12.3 version, the ellipsis that appears when long texting in a certain font we use does not appear.
      In the past qt version, the ellipsis was normally displayed in the same font, and it is assumed that it has changed depending on the qt framework version update, so please check it. I attached font file.

      Even other glyphs(epllipsis glyph) are not rendering, so it is presumed that font-fallback is not performed properly.

       

      5.12.3 sample code

      import QtQuick 2.12
      import QtQuick.Window 2.12
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          FontLoader {
              id: customFont
              source: "qrc:/LG_Smart_UI_AR_HE_TH-Regular.ttf"
          }
      
          Rectangle {
              id: rec1
              width: 100
              height: 50
              border.color: 'red'
              Text {
                  text: 'וּבְכָל-נַפְשְׁךָ, וּבְכָל-מְאֹדֶֽךָ'
                  font.family: customFont.name
                  elide: Text.ElideRight
                  anchors.fill: parent
              }
          }
      
          Rectangle {
              id: rec2
              anchors.top: rec1.bottom
              width: 100
              height: 50
              border.color: 'blue'
              Text {
                  text: 'וּבְכָל-נַפְשְׁךָ, וּבְכָל-מְאֹדֶֽךָ'
                  elide: Text.ElideRight
                  anchors.fill: parent
              }
          }
      
      }
       

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            kyuman_lim Kyuman Lim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes