[webkit-qt] Help with aliased text

Leander Bessa leanderbb at gmail.com
Wed Oct 19 07:43:43 PDT 2011


Hello,


I've been using the latest QtWebKit port ( the one that ships with the Qt
4.8.0 RC ) on Mac OS X 10.7  and testing the accelerated compositing and
CSS3 animations. My small example uses the following code:

    QApplication a(argc, argv);

    QGraphicsScene scene;

    QGraphicsView gview(&scene);

    QGraphicsWebView webView;

     gview.setRenderHints(QPainter::Antialiasing |
QPainter::TextAntialiasing| QPainter::HighQualityAntialiasing
|QPainter::SmoothPixmapTransform);

    webView.setUrl(QUrl("http://www.satine.org/research/webkit/snowleopard/snowstack.html"));

    //webView.setUrl(QUrl("http://www.html5test.com"));

    scene.addItem(&webView);

    gview.setProperty("size",QSize(800,600));

    gview.setViewport(new QGLWidget());

    gview.setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate);

    gview.show();

    return a.exec();


Although this does accelerate the CSS3 animations it aliases the text in all
websites it opens. I've tried enabling the antialiasing through the
setRenderHints() method, but that did not seem to have any affect at all.

Is there any way around this or did i set up something wrong in the code
above?.

Regards,

Leander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20111019/17d7bdda/attachment.html>


More information about the webkit-qt mailing list