获取未安装字体的字体和Windows名称 [英] Getting typeface and Windows name of font that is not installed
问题描述
像具有字体arialblack的arialblackno1.ttf一样。
但我正在寻找未安装的字体的字体名称,它只在一个文件夹中。
您在评论中说,您需要在Windows中未安装的字体名称。
有两种方法这样做,我可以想到: -
-
使用 FreeType
-
或使用GDI +和 PrivateFontCollection.AddFontFile()
无论哪种方式,您都需要找到这些库的Delphi包装器。 Google应该帮助。
似乎有一个FreeType绑定作为 AggPas 。这不是我试过的东西。
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.
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.
这篇关于获取未安装字体的字体和Windows名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!