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

Unicode Characters Rendering Issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.10.1
    • QPA: WebGL
    • None

    Description

      I just noticed that some Unicode characters are not being rendered properly in Qt 5.10.1 during WebGL streaming, using the following font:

      https://github.com/wweir/source-han-sans-sc/blob/master/SourceHanSansSC-Light.otf

      Here’s an example QML to reproduce the issue:

      import QtQuick 2.10
      import QtQuick.Window 2.10
      
      Window {
          visible: true
          width: 1920
          height: 1080
          title: qsTr("Test Unicode Characters")
      
          FontLoader {
              id:sourceHanSancSCFontLoader
              source: "file:///opt/fonts/SourceHanSansSC-Light.otf"
          }
      
          function allCharacters() {
              var string = "";
              for(var i=19968;i<25343;++i) {
                  string += String.fromCharCode(i)
              }
              return string
          }
      
          Text {
              text: allCharacters()
              anchors.centerIn: parent
              font.family: sourceHanSancSCFontLoader.name
              font.pointSize: 12
              font.weight: Font.Normal
              wrapMode: Text.Wrap
              color: "black"
              width: parent.width
              height: parent.height
          }
      }

      Attachments

        For Gerrit Dashboard: QTBUG-66682
        # Subject Branch Project Status CR V

        Activity

          People

            jefernan Jesus Fernandez
            jefernan Jesus Fernandez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes