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

Metrics for emoji broken on macOS when using Freetype

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8
    • GUI: Font handling
    • None
    • macOS

    Description

      Putting the following in the paint event of a widget:

      p.drawText(rect(), Qt::AlignCenter, QStringLiteral("a☢️a"));
      

      will give you centered text with the coretext backend but not with Freetype. Most likely it is because Freetype does not support the default SBIX font so we end up in some weird fallback path, though this has not been verified yet. At least there are messages such as this on the console:

      FT_New_Face failed for face index 0 : 90
      QFontEngineFT: Failed to create FreeType font engine
      

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes