Page 1 of 1

font can display (or not) a character

Posted: Sun Mar 07, 2010 11:09 am
by Cosmin3
Hi.
In some situations a font can't display a certain character.
In this case ScaleRichView shows a rectangle.
Is there a way to know that a character can't be displayed properly with a specific font..?
Thank you in advance for your reply.

Posted: Sun Mar 07, 2010 11:23 am
by Sergey Tkachenko
I think you can use GetFontUnicodeRanges WinAPI function to know which characters are supported by the font.

Posted: Sun Mar 07, 2010 1:15 pm
by Cosmin3
Seems to work.
Thank you very much.
Best regards.