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

Emojis and Chinese Characters are Painted Incorrectly when Scaling Factor is Non-Integer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.11.2, 5.12.0
    • None
    • Windows 10 1809/1803, MSVC 2017
      Arch Linux, GCC 8.2.1
      Fedora 29, GCC 8.2.1
      Ubuntu 18.10
    • Linux/Wayland, Linux/X11, Windows

      When writing a QtQuick application, the emojis and Chinese characters in Label or Text components are not painted in their corresponding place if an non-integer scaling factor(1.25, 1.5, 1.75, etc) is applied. If a scaling factor of 2 is applied, they are painted correctly.

      This can be reliably reproduced in Windows 10 1803/1809, MSVC 2017. Only emoji dislocation can be observed in GNU/Linux operating systems, regardless of displaying system.

      I suspect Qt's non-Latin glyph rendering does not handle non integer scaling factors correctly.

      The example code is in the attachment, notice that the text should be displayed within the rectangle.

        1. emoji.png
          8 kB
          Haolan Li
        2. emoji.zip
          4 kB
          Haolan Li
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            bhat Haolan Li
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes