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

Qml: Unsupported UTF32 Text

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.0, 6.8.1
    • None
    • Windows 11 - Qt 6.8.1 msvc2022_64
    • Windows

    Description

      On Windows, Text doesn't render surrogate pairs after some point (like flags) with the official Google Emojis fonts.

      A test example is in attachements:

      Flags are recognized so it should be supported.

       

      // code placeholder
      import QtQuick
      import QtQuick.Dialogs
      import QtQuick.Layouts
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          ColumnLayout{
              anchors.centerIn: parent
              Text{
                  text: '🏁/💩/🇧🇿/🇩🇪'
                  font: fontDialog.selectedFont
                  color: 'black'
              }
              Text{
                  text: String.fromCodePoint(0x1F3C1)+"/"+
                      String.fromCodePoint(0xd83d, 0xdca9)+"/" + String.fromCodePoint(0x1F1E7, 0x1F1FF) + '/'+String.fromCodePoint(0x1F1E9,0x1F1EA)
                  font: fontDialog.selectedFont
                  color: 'black'
              }
          }
          FontDialog{
              id: fontDialog
              Component.onCompleted: open()
          }
      } 

      Btw on Linux (Ubuntu 22.04, Qt6.8.0), no systems font print characters. It is always ' / / / /'

       

      Attachments

        1. screenshot-1.png
          screenshot-1.png
          18 kB
        2. Screenshot 2024-12-05 104204.png
          Screenshot 2024-12-05 104204.png
          53 kB
        3. Screenshot 2024-12-05 104217.png
          Screenshot 2024-12-05 104217.png
          50 kB
        4. Screenshot 2024-12-05 155230.png
          Screenshot 2024-12-05 155230.png
          46 kB
        5. test.zip
          7.37 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            julienwa Julien Wadel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes