How to determine which character ranges are supported by the font

When working with different fonts, some may support, say, Arabic characters, where another may not be.

Is there a way in C # to figure out which character ranges are supported by a particular font?

+5
source share
1 answer

You will need P / Invoke GetFontUnicodeRanges (). It is not easy to do, because the font must be selected in the context of a device that requires more p / invoke.

But most of all, this is not correct. You have to rely on the automatic linking of Windows fonts; it finds a different font if necessary for glyph delivery. This feature is described in this article .

+4
source

All Articles