Results 1 to 2 of 2

Thread: @font-face not rendering in QtWebView 4.8.0, ignore WOFF files

  1. #1
    Join Date
    Mar 2012
    Posts
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default @font-face not rendering in QtWebView 4.8.0, ignore WOFF files

    Any idea why this font would not be working in QWebView?

    (Original page: http://solsticeadvertising.com/)

    @font-face {
    font-family: 'DeliscriptItalic';
    src: url('fonts/style_174735.eot');
    src: url('fonts/style_174735.eot?#iefix') format('embedded-opentype'),
    url('fonts/style_174735.woff') format('woff'),
    url('fonts/style_174735.ttf') format('truetype'),
    url('fonts/style_174735.svg#DeliscriptItalic') format('svg');
    font-weight: normal;
    font-style: normal;

    }

    I see the .SVG and .TTF fonts loaded in the Inspector, but they do not render as expected.
    In Chrome and Firefox the WOFF files are downloaded and render correctly.
    QTWebKit 4.8.0 seems to completely ignore WOFF files.

    Update: It seems QtWebKit 2.2.0 (as far as I'm aware the version included with Qt 4.8.0) does not have WOFF enabled yet.
    I might try applying these changes myself. https://bugs.webkit.org/show_bug.cgi?id=70952
    Last edited by TimShnaider; 27th March 2012 at 13:15.

  2. #2
    Join Date
    Mar 2012
    Posts
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: @font-face not rendering in QtWebView 4.8.0, ignore WOFF files

    Update #2 (I can't seem to edit my posts anymore):

    Followed changes outlined in attachment linked to https://bugs.webkit.org/show_bug.cgi?id=70952 and now WOFF fonts *almost* render properly for the example site.
    The diffs are against a newer set of files than what comes with 4.8.0, just add the changes manually and it works.

    Will post an update if I figure out why 1/3 of the WOFF fonts are not rendering...

Similar Threads

  1. Font rendering issue
    By yogeshgokul in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 3rd May 2016, 15:31
  2. Set specific font's face
    By Cucumber in forum Newbie
    Replies: 3
    Last Post: 7th December 2010, 01:08
  3. QtWebView
    By santhoshpatil in forum Qt Programming
    Replies: 4
    Last Post: 23rd September 2010, 08:08
  4. Fast Font Rendering
    By photo_tom in forum Qt Programming
    Replies: 2
    Last Post: 18th March 2010, 05:15
  5. Font rendering on Mac
    By menab0t in forum Qt Programming
    Replies: 0
    Last Post: 19th May 2009, 13:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.