Results 1 to 3 of 3

Thread: Qt app showing wrong font

  1. #1
    Join Date
    Nov 2008
    Posts
    183
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Qt app showing wrong font

    Qt Creator correctly shows and uses the Tahoma font installed on the Ubuntu VM when designing widgets. There are no style sheets involved. In the Unbuntu VM when the application runs it shows some icky nasty Serif font which is also the wrong point size. Under bitbake it shows the correct font.

    4.8.x of Qt

    This problem seems to be rather pervasive as I've encountered others that have it. Any solutions?

    Thanks,

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt app showing wrong font

    The problem seems to be with your system settings which are picked up by the application. Hard to say anything more detailed though. Qt respects FontConfig so you might start looking at your settings there.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Nov 2008
    Posts
    183
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt app showing wrong font

    Quote Originally Posted by wysota View Post
    The problem seems to be with your system settings which are picked up by the application. Hard to say anything more detailed though. Qt respects FontConfig so you might start looking at your settings there.
    Actually, it appears there are some vast issues with Qt and different Linux desktop versions. The slightest difference in versions, at least on KDE desktop means the application will not get the correct fonts. Currently developing on Ubuntu 12.04.3 LTS and qt-everywhere 4.8.3 built from source on this system. Does not get correct font. Another box running the exact same VM image can install the Qt dev packages from the distro repositories, build the exact same application from source and have it bring in the correct fonts.

Similar Threads

  1. Qt Creator Why QtCreator uses wrong font and how to fix it?
    By kamre in forum Qt Tools
    Replies: 0
    Last Post: 25th December 2013, 11:19
  2. Replies: 2
    Last Post: 3rd May 2013, 04:24
  3. Showing font symbols
    By drhex in forum Qt Programming
    Replies: 0
    Last Post: 4th March 2009, 22:53
  4. Showing QMainWindow without showing a child QWidget
    By discostu in forum Qt Programming
    Replies: 3
    Last Post: 4th March 2007, 10:03
  5. Qt renders wrong font
    By durbrak in forum Qt Programming
    Replies: 8
    Last Post: 2nd November 2006, 15: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.