Results 1 to 4 of 4

Thread: Issue with rendering fonts in windows

  1. #1
    Join Date
    Feb 2015
    Posts
    185
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Issue with rendering fonts in windows

    I am trying to load the .html page which has verdana-bold is set as the font-face.
    In mac system, this font is rendered just as expected but in windows the font is not picked.

    Kindly let me if there is something which can be done to make the font rendered.

    Saw a link where in to render the font - phanthomjs was asked to be installed

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,418
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Issue with rendering fonts in windows

    If you manually create a QFont object, is it the font you expect?
    If not, check if QFontDatabase even knows about it.
    If not, check if the system has it installed.

    It might also make a difference which component you load the HTML into.

    I don't think phantomjs is any use here, it is a framework for testing web sites based on webkit, designed to operate in non-visual mode (automated tests).
    The link you have in your post also does not suggest installing phantomjs at all, it is about getting certain fonts to be used by phantomjs.

    Cheers,
    _

  3. #3
    Join Date
    Feb 2015
    Posts
    185
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: Issue with rendering fonts in windows

    actually, the font used to display the text in html page is not picked.

    the font-face is specified in the css related to the html.
    The font made use of is installed in the system.

    And regarding Phanthomjs, what you said is correct. My comment is misleading.


    I am loading the html page in QGraphicsWebView.

  4. #4
    Join Date
    Feb 2015
    Posts
    185
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: Issue with rendering fonts in windows

    kindly let me know which font will be supported in QGraphicsWebView for displaying text
    according Qt 5.1 release WOFF fonts are supported.
    But in windows alone it's not rendering
    Last edited by ejoshva; 12th August 2015 at 10:41.

Similar Threads

  1. Font rendering issue
    By yogeshgokul in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 3rd May 2016, 14:31
  2. Windows fonts not working in QT?
    By frenetic in forum Installation and Deployment
    Replies: 2
    Last Post: 10th January 2009, 02:17
  3. QGraphicsView + OpenGL -> Pixmap rendering issue
    By JoergRe in forum Qt Programming
    Replies: 2
    Last Post: 20th May 2008, 18:41
  4. QGraphicsView rendering issue
    By guilugi in forum Qt Programming
    Replies: 9
    Last Post: 6th April 2007, 09:09
  5. Rendering rectangles speed issue
    By macbeth in forum Qt Programming
    Replies: 11
    Last Post: 15th March 2007, 01:30

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.