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

Unicode Characters Rendering Issues

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.10.1
    • Fix Version/s: None
    • Component/s: QPA: WebGL
    • Labels:
      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

            Assignee:
            jefernan Jesus Fernandez
            Reporter:
            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