[Qt-qml] Font rendering quality in QDeclarative
Alex
alexlordax+qt at gmail.com
Wed Sep 15 00:58:26 CEST 2010
Hi all,
For a while now, I've had the nagging feeling that text doesn't look
quite right in my application. As a sanity check, I ran the
availableFonts.qml sample application (from declarative/text/fonts)
using QML Viewer, and it looked fine. I then ran the same application
using QDeclarative and the results were much more similar to my
application.
Here is a side-by-side comparison of how availableFonts.qml looks when
run using QML Viewer vs QDeclarativeEngine.
http://members.shaw.ca/amonjushko/font_render_quality.png
You'll notice that the right hand side is significantly less smooth.
The difference becomes even more severe with black text on a white
background.
My C++ code looks like this:
QDeclarativeView *qmlView = new QDeclarativeView;
QDeclarativeEngine *engine = qmlView->engine();
qmlView->setSource(QUrl::fromLocalFile("/Developer/Examples/Qt/declarative/text/fonts/availableFonts.qml"));
qmlView->show();
I am using 4.7rc1 on Mac OSX 10.6.3.
Any ideas?
Thanks,
Alex
More information about the Qt-qml
mailing list