PHP:读取字体文件的TrueType / OpenType元数据 [英] PHP: Read TrueType/OpenType metadata of the font file

查看:560
本文介绍了PHP:读取字体文件的TrueType / OpenType元数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何读取字体细节?例如,字体在其元数据中包含版权,姓氏,设计者,版本等信息。我还希望脚本能够计算文件中的字形数量,并返回字体支持的语言。例如,一个典型的字体可以包含西方语言,瑞典语和罗曼语支持,并且有数百个字形。它应该支持truetype和opentype字体文件。感谢您提前帮助实现这一目标!

解决方案

我知道这是一个古老的线程,但已经有一些运动这个主题


How to read the fonts details? For example, fonts contain information like copyright, family name, designer, version, and more in their metadata. I would like also the script to be able to count the amount of glyphs in the file, as well as return what languages the font supports. For example, a typical font could contain western, swedish and romain language support, and have hundreds of glyphs. It should support truetype and opentype font files. Thanks in advance for any help on achieving this!

解决方案

I know this is an old thread, but there has been some movement on the topic over on this thread.

这篇关于PHP:读取字体文件的TrueType / OpenType元数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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