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

Metrics for emoji broken on macOS when using Freetype

XMLWordPrintable

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

      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
      

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

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

              Created:
              Updated:

                There are no open Gerrit changes