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

Disabling font antialiasing does not work.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.4.2
    • GUI: Font handling
    • None
    • Windows

    Description

      Font anti-aliasing can't be disabled, even when following the documentation's instructions:

       

      QFont font = ...;
      
      font.setStyleStrategy((QFont::StyleStrategy)(QFont::NoAntialias | QFont::NoSubpixelAntialias));
      
      QPainter p(&device);
      p.setRenderHint(QPainter::Antialiasing, false);
      p.setRenderHint(QPainter::TextAntialiasing, false);
      p.setFont(font); 
      p.setPen(...);
      p.drawText(...);

      The text will still be rendered with anti-aliasing.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            jasonc Jason Cipriani
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes