Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. [RESOLVED] Are WOFF fonts supported in QWebView in QT 5.1
Forum Updated to NodeBB v4.3 + New Features

[RESOLVED] Are WOFF fonts supported in QWebView in QT 5.1

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 2 Posters 2.2k 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.
  • D Offline
    D Offline
    davidgildea
    wrote on last edited by
    #1

    Hi,

    My fonts are not displaying correctly and I think that is may be that fact that they are WOFF fonts from google. Does anyone know if WOFF fonts are supported out of the box in QT 5.1 or do I need to do anything to enable them.

    Also how can I inspect the QWebView in debug mode to see what fonts and files have been downloaded ?

    Many thanks

    Dave

    1 Reply Last reply
    0
    • E Offline
      E Offline
      elProxy
      wrote on last edited by
      #2

      It should actually, it made it in between the alpha and the beta of 5.1:

      https://bugreports.qt-project.org/browse/QTBUG-30021

      You can use the web inspector and check out the resources tab, then once you located the font, right click on it and pick "reveal in network panel" which should show the mimetype.

      To get the inspector available from the context menu, you can just set the DeveloperExtrasEnabled attribute:
      http://qt-project.org/doc/qt-5/qwebsettings.html#WebAttribute-enum

      1 Reply Last reply
      0
      • D Offline
        D Offline
        davidgildea
        wrote on last edited by
        #3

        Thanks for the info. I was using a custom QWebPage class, once I removed that the WOFF fonts rendered correctly.

        Thanks for the inspector heads up as well, that has made things a lot simpler.

        Thanks

        Dave

        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