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

QTextEdit/QString unable to display unicode characters whose values are above 0x11000 (Hex)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 4.8.3
    • GUI: Text handling
    • None
    • QT 4.8.3 open source version/ MinGW with GCC 4.4.2. Windows 7 x86 (64 bit), with QT creator 2.5.2

    Description

      QTextEdit/QString is unable to display unicode characters whose range is above the hex value of 0x11000.

      For the brahmi indic characters the unicode range starts from 0x11000 and ends at 0x1107F.

      Instead it shows black blocks.

      The same set of characters are perfectly visible in MS word 2010. The attached application reproduces the issue. Also attaching MS Word screenshot, font used to reproduce the issue and the unicode chart for the font.

      #include <QApplication>
      #include <QtGui>
      
      #include "mainwindow.h"
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          QTextEdit edit;
      
          edit.document()->setDefaultFont(QFont("Adinatha Tamil Brahmi", 16));
      
          QString content;
      
          for (int i = 0; i < 100; i++)
              content += QString(0x11005);
      
          edit.setText(content);
      
          edit.show();
      
          return a.exec();
      }
      
      

      Attachments

        1. Adinatha-Tamil-Brahmi.otf
          50 kB
        2. U11000.pdf
          86 kB
        3. unicode_bug.png
          unicode_bug.png
          66 kB
        4. UnicodeBug.zip
          416 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ritt.ks Konstantin Ritt
            tarkshya Ram
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes