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

CLONE - QPainter's drawText method can't paint unicode characters with code values above 65535

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.4.0
    • GUI: Painting
    • None
    • Mac Os 10.10.1
      Qt 5.0 Community Edition

    Description

      All Hieroglyps character are stored using surrogate pairs. QPainter's drawText method can't paint always at each time theses character, and Qlabel can't display this character too. In both test, I use a font named "AEgyptus".
      The same character can be displayed by other programs in my computer.

      The strangest part is same binary executed several time don't display each time the same caracter (cf the screenshoots 4 execution of the same code 4 differents result the bird is the execpeted result).

      The fonts are here http://bit.ly/1snZiy2 (AEgyptus)

      the code to display that

      BTW for the Bird

      To reproduce the bird => res = 78143

      int res = Map->value(*hiero);
      const wchar_t testwc= (const wchar_t)res;
      Hieroglyph.append(QString::fromWCharArray(&testwc, 1));

      Attachments

        1. SShot1 16.55.22.png
          SShot1 16.55.22.png
          7 kB
        2. SShot2 16.55.06.png
          SShot2 16.55.06.png
          8 kB
        3. SShot3 16.54.53.png
          SShot3 16.54.53.png
          7 kB
        4. SShot4 16.54.42.png
          SShot4 16.54.42.png
          7 kB

        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
              qtdev Qt-dev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes