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

Font anti-aliasing on Windows 7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.8.x
    • GUI: Font handling
    • None
    • Windows 7

    Description

      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 turning on "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) > Adjust visual effects (left sidebar) >
        Enable "Smooth edges of screen fonts"

      There does not seem to be a simple way to forcibly enable anti-aliasing when drawing text, when those settings are unset.
      It works perfectly on Linux.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            Sylvain Corlay Sylvain Corlay
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes