Results 1 to 2 of 2

Thread: [Solved] Detect placeholder characters

  1. #1

    [Solved] Detect placeholder characters

    I'm busy adding unicode support to my Font Studio program, and I have a list of all 65536 characters available to use from the unicode set but most of the characters are not supported by the current font and just show that square placeholder thing. I'd like to show only those characters which are supported by the current font.

    Now, how do I detect whether a character is supported by the current font or if it's not (ie. shows the placeholder character when printed)?

    I've done some googling, but nothings turned up yet...

    I'm using TextOutW() to display the character.
    My site: DelphiTuts.com (coming soon)...

    Download Font Studio 4.21 here.

  2. #2

    [Solved] Detect placeholder characters

    Ok, after some creative googling, I found some functions which will tell me what I need to know:

    GetFontUnicodeRanges

    and

    GetGlyphIndices

    will both tell you whether a font supports a specific character or not.
    My site: DelphiTuts.com (coming soon)...

    Download Font Studio 4.21 here.

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
  •