从ttf文件中提取字形路径信息 [英] Extracting glyph-path information from ttf files

查看:204
本文介绍了从ttf文件中提取字形路径信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在试图找出一种方法来提取ttf文件中编码的信息。即:char-to-glyph表和单个字形路径数据。

I'm trying to figure out a way to extract the information encoded in ttf files. namely: The char-to-glyph table and the individual glyph path data.

有没有人有一个很好的参考解释ttf文件结构或其他一些解决方案?

Does anyone have a good reference explaining the ttf file structure, or some other solution?

请记住,我对任何可以为我做这些的库都不感兴趣(除非它们是开源的,我可以看到它们是如何做的)。 主目标是在Javascript中实现它。

Keep in mind that I'm not interested in any libraries that can do it for me either (unless they are open source and I can see how they are doing it). The "master" goal is to implement it in Javascript.

谢谢!

推荐答案

http://opentype.js.org/ 上查看OpenType.js

Take a look at OpenType.js at http://opentype.js.org/


opentype.js为字形提供原始访问,以便您可以随意修改它们。

opentype.js provides you with raw access to the glyphs so you can modify them as you please.

可以使用 Font Inspector ,并使用枚举所有字形雕文检查员

这篇关于从ttf文件中提取字形路径信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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