Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.0.0
-
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.