Results 1 to 3 of 3

Thread: Fonts used by external program invoked from qt application

  1. #1
    Join Date
    Aug 2010
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question Fonts used by external program invoked from qt application

    Hi,

    I am runnign an external program(assistant) from my qt code. Before invokling this program I am setting a particular font for the QApplication.
    But this program does not use the same font I set for my application.

    Any insight?

  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: Fonts used by external program invoked from qt application

    This is a different process, it won't inherit things such as font settings for your application. As far as I remember you can set a default font for an application by passing it a -font <font_description> arguments on the command line. Just don't ask me how the font description should look like. This is probably an X11 setting.
    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
    Aug 2010
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question Re: Fonts used by external program invoked from qt application

    Thanks for the reply.

    specifying -font also did not force it to pick the correct font. I cross-checked it with xterm and it worked for it.

    So, I have left with the option of fontconfig. I can specify the fonts directory in a custom .fonts.conf file, and ship this file with installation. But, xml does not understand environment variables which I will need for the fonts directory. Any insight into this?

Similar Threads

  1. Replies: 1
    Last Post: 30th April 2010, 13:25
  2. running external console program by gui program
    By alireza.mixedreality in forum Qt Programming
    Replies: 4
    Last Post: 24th April 2010, 18:05
  3. External Program Management with Qt
    By rapajic in forum Qt Programming
    Replies: 5
    Last Post: 7th April 2009, 09:52
  4. Replies: 7
    Last Post: 19th January 2008, 15:29
  5. Loading Of Fonts In Application ???
    By Gaurav K SIngh in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 23rd July 2007, 14:17

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.