font can display (or not) a character

General TRichView support forum. Please post your questions here
Post Reply
Cosmin3
Posts: 54
Joined: Sat Apr 05, 2008 12:04 pm

font can display (or not) a character

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17306
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I think you can use GetFontUnicodeRanges WinAPI function to know which characters are supported by the font.
Cosmin3
Posts: 54
Joined: Sat Apr 05, 2008 12:04 pm

Post by Cosmin3 »

Seems to work.
Thank you very much.
Best regards.
Post Reply