问题
I'm writing a small .NET application that can produce SWF files, and I need to support Unicode fonts. I don't know the things on it and font rendering well, so I understand that I've made some blunders while writing my application: many fonts installed on my Windows don't support Unicode characters so I can see hollow squares only instead of the glyphs. My supposition is using of proper font substitution while rendering the SWF files that could contain embedded glyphs. First of all, I must determine whether a glyph is present in the necessary font. I've found a partial solution of such test here, though it doesn't seem to be the thing I want to achieve because the sample operates for Unicode ranges only. But I've paid attention on Windows' Charmap application: it can hide missing glyphs. I tried to explore how charmap
does the check with Dependency Walker to analyze its import table, but I didn't find anything instead of some GDI++ font functions. I don't know what to do and I'm very confused. :(
Please suggest the direction I should look in for. It could be a WinAPI or .NET 2.0 (not even .NET 3.0) suggestion. Thanks.
回答1:
Actually I've found the solution at the CodeProject myself.
来源:https://stackoverflow.com/questions/1633495/detecting-glyphs-occurrences-in-any-fonts