I am working on a translation software add in (C#, .NET 2.0) which displays translated texts in a emulated device display. I have to check if all translated texts could be displayed with specified fonts (Windows TTF). But I didn't found any way to check a font for unsupported glyphs. Does anyone have an idea?
Thanks
Are you limited to .NET 2.0? In .NET 3.0 or higher, there's the
GlyphTypeface
class, which can load a font file and exposes theCharacterToGlyphMap
property, which I believe can do what you want.In .NET 2.0, I think you'll have to rely on PInvoke. Try something like: