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

REG: Tamil script (and possibly others) show up as boxes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.0.0
    • 5.0.0
    • GUI: Text handling
    • None
    • 3d6901066af9f0f9c42d5c7eedf74519946917d6

    Description

      After 83648984398b83f9c0b776270b4402743c18e0d4, some scripts are broken, most likely due to a bug in the lazy loading of OpenType tables.

      One such example is Tamil script.

      Run the following application:

      #include <QtGui>
      #include <QtWidgets>
      
      int main(int argc, char **argv)
      {
          QApplication app(argc, argv);
      
          QImage image(320, 400, QImage::Format_ARGB32);
          image.fill(Qt::white);
      
          QTextLayout textLayout(QString::fromUtf8("விக்கிப்பீடியாவிற்க"));
          textLayout.beginLayout();
          textLayout.createLine();
          textLayout.endLayout();
      
          {
              QPainter p(&image);
              textLayout.draw(&p, QPointF(0, textLayout.boundingRect().center().y()));
          }
      
          QLabel label;
          label.setPixmap(QPixmap::fromImage(image));
          label.show();
      
          return app.exec();
      }
      

      It will show only boxes with the change. If you revert the change, it will look fine. The text is copy-pasted from Wikipedia, so I have no idea if it means anything.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes