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

Emojis don't render as colour emojis, if the default font has black and white versions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.0
    • GUI: Text handling
    • None
    • Any Linux distro with Qt up to version 5.15
    • Linux/Wayland, Linux/X11

    Description

      When you have the following qml (also works with widgets, etc):

      import QtQuick 2.2
      
      Text {
       width: 200
       wrapMode: Text.Wrap
       textFormat: Text.RichText
       text: "����"
      }
      

      It will render all but the last emoji without colour and the last one with colour. Currently I have to surround all emojis with a font tag, that selects a colour emoji font, just so that I can have coloured emojis. I would appreciate it, if Qt would actually render these emojis as colour emojis, so that I don't need to use the RichText format. This probably happens because DejaVu Sans supports some of those emojis, but only in black and white.

      https://bugreports.qt.io/browse/QTBUG-71929 seems to have also described this issue, but it was closed as a duplicate of a Windows bug, that was fixed with a Windows specific patch in 5.15. Since I can still reproduce this on Linux, this seems to still be an issue.

      Attachments

        1. fontcreator-warning.png
          22 kB
          Eskil Abrahamsen Blomfeldt
        2. qml-emoji-colour.png
          3 kB
          Nicolas Werner

        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
              deepbluev7 Nicolas Werner
              Votes:
              21 Vote for this issue
              Watchers:
              32 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes