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

Unicode hair space character incorrectly rendered on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • Some future release
    • 3.x
    • GUI: Painting
    • None

    Description

      A Unicode hair space character (U+200A) should render as a very narrow space. On the Windows platform (WinXP) Qt renders it as a black bar. On Linux it renders as it should.

      Here is an example program:
      #include <QApplication>
      #include <QLabel>
      #include <QFont>
      #include <QString>
      #include <QChar>

      int main(int argc, char* argv[])
      {
      QApplication app(argc, argv);

      QString str("Hello there");
      str[5] = QChar(0x200a);
      QLabel window(str);
      window.setFont( QFont("Sans", 50) );
      window.show();

      app.exec();
      }

      There should be a space between "Hello" and "there" in the output Window. This was tested on Windows XP SP3 x86.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jeremysanders Jeremy Sanders
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes