Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Disabling subpixel font anti-aliasing

Disabling subpixel font anti-aliasing

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 573 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jspa
    wrote on last edited by Jspa
    #1

    I've been working on a QML app, and noticed that Qt seems to automatically apply subpixel anti-aliasing to fonts in my app (see the below image for an example of what I mean).

    Subpixel rendering example.png
    I would like to disable this behaviour and use only greyscale rendering.

    I've tried setting the style strategy of QFont to QFont::NoSubpixelAntialias, however this doesn't seem to have an effect. I would appreciate any pointers on how to solve this.

    For context, this app is running on Linux, using Wayland and Qt 6.5.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved