Results 1 to 6 of 6

Thread: How to using/setting the font caching

  1. #1
    Join Date
    Jul 2010
    Posts
    4
    Qt products
    Qt4

    Default How to using/setting the font caching

    Hi guys
    I am writing an application and now I need to know how to use the 'font caching' functionality.
    does it be able to work internally & automatically?
    or is there any APIs to set font caching mode?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to using/setting the font caching

    How would you define 'font caching' ??

  3. #3
    Join Date
    Jul 2010
    Posts
    4
    Qt products
    Qt4

    Default Re: How to using/setting the font caching

    Font Caching that i thought was caching the font information such as glyph.
    I think qt font might be the free type font internally. and that kind of information can make font processing faster.

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to using/setting the font caching

    Ok..
    Qt doesnt do caching till now as far as I know.
    This feature will be available from Qt 4.7 onwards.

    Have a look at QStaticText
    I guess thats what you were looking for

  5. #5
    Join Date
    Jul 2010
    Posts
    4
    Qt products
    Qt4

    Default Re: How to using/setting the font caching

    On my closer examination, much of the part in the QFontCache and the QFontEngineData seems to be related to Font Caching.
    (C:\Qt\2010.04\qt\src\gui\text\qfont_p.h)

    But I can't catch how to use them to support Font Cashing because there's no examples for information about using the Font Caching and there's no API Reference for them.

    does the Font Caching be able to work internally & automatically when i use QFont?

    thank you.

  6. #6
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to using/setting the font caching

    does the Font Caching be able to work internally & automatically when i use QFont?
    I guess yes.
    bec qfont_p.h is private header and those classes are internally used by Qt. The user is not supposed to be bothered about them.

Similar Threads

  1. QCompleter once again (setting a font)
    By Lykurg in forum Qt Programming
    Replies: 2
    Last Post: 15th March 2007, 13:42
  2. Replies: 3
    Last Post: 30th January 2007, 08:35
  3. Reg - Font setting QListBox
    By lawrence in forum Newbie
    Replies: 1
    Last Post: 23rd December 2006, 21:07
  4. QPixmap caching?
    By gfunk in forum Qt Programming
    Replies: 3
    Last Post: 11th August 2006, 23:46
  5. Caching QAbstractProxyModel dilemma
    By Alessandro in forum Qt Programming
    Replies: 2
    Last Post: 11th April 2006, 20:51

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.