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

Unicode with style of Text.Outline crashes app

    XMLWordPrintable

Details

    • Linux/Wayland, Linux/X11

    Description

      The following code will crash any Linux system that has proper unicode support:

       

      import QtQuick 2.15
      import QtQuick.Window 2.15
      Window {
          width: 640
          height: 480
          visible: true
          Text {
              id: patLabel
              text: "🏒Mom"
              style: Text.Outline
          }
      }
       

      The problem is the combination of style: Text.Outline with the text being unicode. If unicode support is broken (because sometimes there are fonts that don't support unicode properly), the app doesn't crash but it also doesn't show the unicode.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              tshah Tej Shah
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes