检测任何字体中的字形出现情况
我正在编写一个可以生成 SWF 文件的小型 .NET 应用程序,并且我需要支持 Unicode 字体。我不太了解它的内容和字体渲染,所以我知道我在编写应用程序时犯了一些错误:我的 Windows 上安装的许多字体不支持 Unicode 字符,所以我只能看到空心方块而不是字形。我的假设是在渲染可能包含嵌入字形的 SWF 文件时使用正确的字体替换。首先,我必须确定所需字体中是否存在字形。我发现了 此处此类测试的部分解决方案,尽管这似乎不是我想要实现的目标,因为该示例仅适用于 Unicode 范围。但我注意到 Windows 的 Charmap 应用程序:它可以隐藏丢失的字形。我尝试探索 charmap
如何使用 Dependency Walker 进行检查以分析其导入表,但除了一些 GDI++ 字体函数之外,我没有找到任何东西。我不知道该怎么办,我很困惑。 :(
请建议我应该寻找的方向。它可能是 WinAPI 或 .NET 2.0(甚至不是 .NET 3.0)建议。谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,我自己在 CodeProject 找到了解决方案。
Actually I've found the solution at the CodeProject myself.