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

QTextEdit & Font Rendering

    XMLWordPrintable

Details

    Description

      Observed in a QTextEdit built with Qt 4.3.1 and Qt 4.4.0. Rendering a character with a diacritic mark on top (such as À, Á, Â, Ã, Ä, Å, Ò, Ó, Ô, Õ, Ö, etc.), has only the main body of the character displayed, with sometimes all, and sometimes some of the diacritic mark visable.

      Problem can be observed with the following code. Type a letter with a circumflex on top. Copy across about 10 characters, and resize the window so that the line breaks in to the second line of the QTextEdit and observe the difference in the letters in the first line compared with characters in the second line.

      #include <QApplication>
      #include <QHBoxLayout>
      #include <QTextEdit>

      class Test : public QWidget {
      public:
      Test()

      { QWidget *window = new QWidget; QTextEdit *mybox = new QTextEdit; mybox->setFont(QFont("DejaVu Sans Condensed Garmin", 72)); QHBoxLayout *layout = new QHBoxLayout; layout->addWidget(mybox); window->setLayout(layout); window->show(); }

      };

      int main(int argc, char* argv[])
      {
      QApplication app(argc, argv);
      new Test;
      return app.exec();
      }

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            dakovaci Daniel Kovacic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes