获取未安装字体的字体和 Windows 名称
有人可以告诉我如何获得字体的字体名称吗?我如何获取具有字体名称的字体的 Windows 名称?
例如“arialblackno1.ttf”,其字体为“arialblack”。
但我希望获取未安装的字体的字体名称,它只是在一个文件夹中。
Can someone tell me how can I get the typeface name of a font? And how can I take the Windows name of the font having the typeface name?
Like "arialblackno1.ttf" that have typeface "arialblack".
but I am looking to get the typeface name of a font that isn't installed, it is just in a folder.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您在评论中说您需要 Windows 中未安装的字体的名称。
我能想到的有两种方法:-
使用 FreeType
或者,使用 GDI+,以及 PrivateFontCollection.AddFontFile()
无论哪种方式,您都需要找到 Delphi 包装器对于这些库。谷歌应该提供帮助。
似乎有一个 FreeType 绑定作为 AggPas 的一部分。但这不是我尝试过的。
You say in a comment that you need the name of a font that isn't installed in Windows.
There are two ways of doing this that I can think of:-
Use FreeType
Or, use GDI+, and PrivateFontCollection.AddFontFile()
Either way, you will need to find Delphi wrappers for these libraries. Google should help.
There seems to be a FreeType binding as part of AggPas. It's not something I've tried, though.
事实上,我对你到底要问什么有一点了解(术语!)
Actually, i have a little idea about what exactly are you asking (terms!)