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

Unicode hair space character incorrectly rendered on Windows

XMLWordPrintable

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

      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.

        1. test.cxx
          0.3 kB
          Jeremy Sanders
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes