获取未安装字体的字体和Windows名称 [英] Getting typeface and Windows name of font that is not installed

查看:246
本文介绍了获取未安装字体的字体和Windows名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以告诉我如何获得字体的字体名称?如何使用具有字体名称的字体的Windows名称?



像具有字体arialblack的arialblackno1.ttf一样。



但我正在寻找未安装的字体的字体名称,它只在一个文件夹中。

解决方案

您在评论中说,您需要在Windows中未安装的字体名称。



有两种方法这样做,我可以想到: -





无论哪种方式,您都需要找到这些库的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:-

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆