Results 1 to 7 of 7

Thread: How to support new fonts in Qt, using .ttf file?

  1. #1
    Join Date
    May 2010
    Posts
    100
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default How to support new fonts in Qt, using .ttf file?

    hi,

    i have read about the QFont, but not able to add the support of fonts required by me.

    I have a Qt-4.6.2 running on ARM ,with touch screen LCD for UI. I am having a SwissFont.ttf file. i want to have all the QLineEdits to have these fonts.

    There are some other files in $(QTDIR)/lib/font, but this file is not there.I dont know about the new font support in Qt. what is the method , if i want to add swiss font support?

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: How to support new fonts in Qt, using .ttf file?


  3. #3
    Join Date
    May 2010
    Posts
    100
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to support new fonts in Qt, using .ttf file?

    Yes, i am trying.

    But, what is this?
    Note: Adding application fonts on Unix/X11 platforms without fontconfig is currently not supported.

    where should i do fontconfig?

  4. #4
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: How to support new fonts in Qt, using .ttf file?

    Maybe this article will help : link
    There are some examples at the end of this article.
    Sorry, I have no experience with this, maybe someone else can help you more.

  5. #5
    Join Date
    May 2010
    Posts
    100
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to support new fonts in Qt, using .ttf file?

    I have tried to display the font families present on the board as QStringList and also seen font files in /usr/lib.

    but both are different. There are nearly 25 files in /usr/lib/fonts, and the QStringList QFontDatabase::fontfamilies(Any); return only 11 families.

    Why so? And what to do if i want to avail All font familes?

  6. #6
    Join Date
    May 2010
    Posts
    100
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to support new fonts in Qt, using .ttf file?

    Can some one please give me the hint?

  7. #7
    Join Date
    May 2010
    Posts
    100
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to support new fonts in Qt, using .ttf file?

    No body is replying?

    Is it because this is the first time i am doing ? I have read lot topics related to fonts. But i am not able to add the new font files.

    Do i need to change the Qt Configuration For Arm Board, i am using or the other trick some experts knows.

    I am really very eager to do this.

Similar Threads

  1. Does Qt support zip file.
    By coco in forum Qt Programming
    Replies: 5
    Last Post: 3rd December 2009, 09:06
  2. Korean fonts support in QtEmbedded 4.5
    By Beppe in forum Qt Programming
    Replies: 0
    Last Post: 11th November 2009, 16:44
  3. Flash file support in Qt
    By Manjushri.U.G in forum Qt Programming
    Replies: 2
    Last Post: 7th February 2007, 16:22
  4. Support for File Mapped Memory?
    By Jachyra in forum Qt Programming
    Replies: 8
    Last Post: 5th February 2007, 12:44
  5. is the Qtopia support animated GIF file...
    By ethos0714 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 23rd February 2006, 11:26

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.