Results 1 to 6 of 6

Thread: Set Font Directory how to ?

  1. #1
    Join Date
    Nov 2009
    Posts
    29
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Set Font Directory how to ?

    Hi,

    Qt searches Fonts from Operating System's FONTS directory, can I include fonts from a specific directory instead of OS Fonts directory.

    cann somebody help me out ?

    thanks in advance

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 89 Times in 87 Posts

    Default Re: Set Font Directory how to ?

    Quote Originally Posted by praveen_g View Post
    Qt searches Fonts from Operating System's FONTS directory, can I include fonts from a specific directory instead of OS Fonts directory.
    This works for Win/Mac not for X11.
    Qt Code:
    1. QFontDatabase::addApplicationFont()
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Nov 2009
    Posts
    29
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: Set Font Directory how to ?

    Thanks for your reply.

    Could you educate how to use this, when I tried to use this with

    QString Fpath = "C:/Fonts/Mangal";
    QFontDatabase::addApplicationFont(Fpath);

    this returns a " -1 ", could you educate me on this front.

    thanks

  4. #4
    Join Date
    Nov 2009
    Posts
    29
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: Set Font Directory how to ?

    Thanks Yogesh got resolved.

    I copied the font to the application folder and the issue got resolved.

    can you tell me how to use this font with QFont.

  5. #5
    Join Date
    Nov 2009
    Posts
    29
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: Set Font Directory how to ?

    Got it thanks Yogesh.

    thanks a ton ...

  6. #6
    Join Date
    Nov 2009
    Posts
    29
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: Set Font Directory how to ?

    can somebody tell me how to do the same in LINUX ?

Similar Threads

  1. some questions about install qwt
    By dycjiaoda in forum Qwt
    Replies: 1
    Last Post: 8th February 2011, 02:37
  2. Change font directory path
    By Beppe in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 7th May 2010, 20:17
  3. install help nedded.
    By aj2903 in forum Installation and Deployment
    Replies: 9
    Last Post: 13th November 2008, 08:57
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 16:21
  5. Am I the only one with "make" error ?
    By probine in forum Installation and Deployment
    Replies: 1
    Last Post: 13th February 2006, 13:54

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
  •  
Qt is a trademark of The Qt Company.