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

Disabling font antialiasing does not work.

XMLWordPrintable

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

      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.

        1. QTbug.png
          56 kB
          Peter C
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes