Results 1 to 2 of 2

Thread: QFontDialog BOLD hint on ARIAL not working?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2015
    Posts
    42
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default QFontDialog BOLD hint on ARIAL not working?

    Hello everybody,

    BOLD-hint on Arial seems to fail. Can anybody tell why and how to workaround?

    Qt Code:
    1. QFont font;
    2. font.setFamily("Arial");
    3. font.setPointSizeF(7);
    4. font.setBold(true);
    5.  
    6. qDebug() << font.bold() << font.weight(); // returns: true 75
    7.  
    8.  
    9. QFontDialog dialog(this); // or QFontDialog dialog(font, this);
    10. dialog.setCurrentFont(font);
    11. font = dialog.getFont(&ok, font, this);
    To copy to clipboard, switch view to plain text mode 

    Opens the dialog. But weight is set to standard. This happens on ARIAL and on initial opening only. After I switched trough the dialog to bold, the next launch is set properly. Why is that?
    Tried various other fonts, worked fine.

    I also would like to learn, why I can't set PointSizeF to i.e. 7.5. User experience on my windows systems show that it is possible (i.e. MS-Office)

    Thanks in advance, Lars
    Attached Images Attached Images

Similar Threads

  1. QFontDialog always returns 13x Lucida Grande
    By mhoover in forum Qt Programming
    Replies: 1
    Last Post: 6th February 2010, 01:00
  2. Subclassing QFontDialog
    By fsoltanshahi in forum Qt Programming
    Replies: 0
    Last Post: 23rd October 2008, 17:29
  3. Writing System in QFontDialog?
    By ashukla in forum Qt Programming
    Replies: 12
    Last Post: 23rd January 2008, 11:17
  4. QFontDialog - how to resize?
    By anderssonj in forum Qt Programming
    Replies: 2
    Last Post: 19th June 2007, 14:40
  5. Replies: 2
    Last Post: 20th April 2007, 16:36

Tags for this Thread

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.