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

Windows: Some characters are not rendered correctly when put in a QTextEdit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.2.0, 5.3.0 Beta1
    • GUI: Font handling
    • Qt 5 / Windows: Cannot display any
      Qt 4 / Windows: Can display first 2
      Linux: Can display first 3

    Description

      The following characters when copied and pasted into a Qt application will not be displayed correctly on Windows unless the right font is manually picked:

      (Due to the fact that JIRA would not allow me to paste the characters directly, then they can be copy/pasted from here: http://pastebin.com/6AAPdVg8)

      Whereas in Wordpad they will appear fine.

      QString getText()
      {
          QString rc;
          rc += QChar(0x13a0); // Syllables, script Cherokee
          rc += QChar(0x1401); // Unified Canadian Aboriginal Syllabics, script Canadian_Aboriginal
      
          // Mathematical, script Common
          rc += QChar::highSurrogate(0x1d4d0);
          rc += QChar::lowSurrogate(0x1d4d0)
      
          // CJK Unified Ideographs, script Han
          rc += QChar::highSurrogate(0x22489);
          rc += QChar::lowSurrogate(0x22489)
          return rc;
      

      Attachments

        1. qtbug36462_qt4.log
          13 kB
        2. qtbug36462_qt5.log
          5 kB
        3. qtbug36462.zip
          2 kB
        4. textdrawing_diag4.patch
          27 kB
        5. textdrawing_diag5.patch
          27 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ritt.ks Konstantin Ritt
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes