Results 1 to 2 of 2

Thread: Determine if a font can display a character

  1. #1
    Join Date
    Feb 2006
    Location
    Boulder, Colorado, USA
    Posts
    63
    Thanked 8 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Thumbs down Determine if a font can display a character

    Does Qt have a way to determine if a particular font is able to render a particular Unicode character. If not, does anybody know another way?

    Also, what about multiple character glyphs, how can query whether Qt can display them correctly?

  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: Determine if a font can display a character

    Quote Originally Posted by jrideout View Post
    Does Qt have a way to determine if a particular font is able to render a particular Unicode character.
    No.

    If not, does anybody know another way?
    I don't think there is an easy way. It all depends on what type the font is. You could probably access the font internals through freetype or a simmilar handler, but I guess it would be very slow. I know pretty nothing about freetype, but I guess fonts must have something like properties telling which groups of glyphs they can render. I doubt you'll be able to query for a particular glyph in a decent way, though.

    Also, what about multiple character glyphs, how can query whether Qt can display them correctly?
    Qt can display correctly any Unicode character.

Similar Threads

  1. how to use user define font
    By numen in forum Qt Programming
    Replies: 1
    Last Post: 20th April 2006, 10:25
  2. Determine system font
    By niala in forum Qt Programming
    Replies: 2
    Last Post: 21st March 2006, 22:45

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.