[PyQt] Antialiasing on windows 7 platform

Sylvain Corlay sylvain.corlay at gmail.com
Wed Apr 8 17:41:35 BST 2015


Hello,

I am having trouble obtaining anti-aliasing in Windows 7 when rendering text

Both
    `painter.setRenderHint(QPainter.Antialiasing)`
and
    `font.setStyleStrategy(QFont.PreferAntialias)` are ineffective.

However, anti-aliasing works when setting up ClearType and smooth edges
system-wise

    - Control Panel >
         Appearance and Personalization >
             Adjust ClearType text >
                 enable "Turn on CrearType".
    - Start Menu >
          Adjust the appearance and performance of Windows" or from
Computer >
              System Properties >
                  Windows Experience Index (link) >
                      [shield] Adjust visual effects (left sidebar) >
                          enable "Smooth edges of screen fonts"

Is there a way to forcibly enable anti-aliasing when drawing text, even
when those settings are unset? It works perfectly on Linux.

Thanks,
Sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150408/0d603845/attachment.html>


More information about the PyQt mailing list