Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

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

    Qt WebKit
    2
    3
    1822
    Loading More Posts
    • 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
      davidgildea last edited by

      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 Reply Quote 0
      • E
        elProxy last edited by

        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 Reply Quote 0
        • D
          davidgildea last edited by

          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 Reply Quote 0
          • First post
            Last post