Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Font Size problem on 4k monitor

Font Size problem on 4k monitor

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 446 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.
  • J Offline
    J Offline
    JonathanA
    wrote on last edited by JonathanA
    #1

    I'm having a problem with font sizes in my Application's web view. As an example, here are 3 captures for our home page. Top one is the WebEngineView via the SimpleBrowser sample app. Second one is Firefox and bottom one is Chrome. You'll note the top one is a little bigger than the other two:

    fontsizes.jpg

    I have scaling set to the recommended 150%.

    My JavaScript guy tells me that it reports devicePixelRatio as 2.0, while Firefox says 1.5. But now we've noticed a caveat that says "The Qt platform plugins round the reported scale factors to the nearest integer." so that's probably not it.

    I can set the zoom factor to .8 to get closer to the right size, but then I have to check to see if I'm on a high DPMI monitor or not, and track it if the window moves to an HD monitor (where the size is correct). Ugh. Any other ideas? QA is complaining about it.

    Jonathan

    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