Fallback character detection


#1

Hi,

It might be obvious, but I’m not seeing it. How can I detect if a character is included in a font ?
I’m using some unicode char that might or might not be inside the fallback font, and I want to be able to provide a text based substitution instead of ugly squares.
(For those interested, it’s the “1/10” part of an inch based measure)


#2

It’s easy enough with win32, but almost impossible in OSX, which is why the fallback fonts are currently not working… I think the only way inolves parsing the fonts tables manually, and is a total nightmare.


#3

How do I do then, in Win32 ?


#4

There’s a GetGlyphIndices() function.