Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. WebView with a transparent background doesn't render text with subpixel rendering (cleartype)

WebView with a transparent background doesn't render text with subpixel rendering (cleartype)

Scheduled Pinned Locked Moved Unsolved General and Desktop
subpixel-renderwebview
1 Posts 1 Posters 292 Views
  • 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.
  • S Offline
    S Offline
    squirrel
    wrote on last edited by
    #1

    I'm making an addon for a Qt 6 app (Anki) that allows setting an image for window background. The app uses WebViews for most of its UI. To make the background image visible, I am setting WebView background to a transparent color. This makes the text fail to be rendered in ClearType on Windows.

    In the screenshot below, the menu (View, Tools) text is rendered over an image and gets subpixel rendering, while the word Decks below is coming from a WebView and appears in a very sad way.

    b9b22eee-dcc1-4de7-b39d-fcf57f735b68-image.png

    How can I make WebView render text in ClearType even when its background is transparent?

    (Using Qt 6.3.1, PyQt 6.3.1, Python 3.9.7 on Windows 10 21H2 19044.1766. Not sure if Linux has this issue as well.)

    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