转换或提取TTC字体TTF - 如何? [英] Convert or extract TTC font to TTF - how to?

查看:2176
本文介绍了转换或提取TTC字体TTF - 如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经超过8小时试图制作 STHeiti Medium.ttc.zip 字体在Windows上工作。



但是我不能让它工作。是否有人能够使它在Windows上工作?

解决方案

假设Windows不知道如何处理TTC文件我真的很奇怪),如果你使用 fontforge ,你可以用简单的方法拆分组合字体。 p>

步骤如下:


  1. 下载文件。 b
  2. 解压缩(例如,解开STHeiti Medium.ttc.zip)。

  3. 载入Fontforge。
  4. >
  5. 使用Fontforge打开它(例如, File> Open )。
  6. Fontforge会告诉你在这个特定的TTC文件中至少有两个字体打包(至少在2014-01-29),并要求您选择一个。

  7. 加载字体后(可能需要有一阵子,因为这个字体非常大),你可以通过菜单 File>请求Fontforge来产生 TTF文件。生成字体...

重复加载4-6的其他字体和您可以随时使用您的TTF。



请注意,我强调生成,而不是保存字体会以Fontforge特定的SFD格式创建一个文件,除非你想用Fontforge开发字体,否则这个文件对你来说可能是无用的。



如果您希望有更多的编程/自动方式来操作字体,那么您可能会对我的答案感兴趣(但不完全一样)的问题。



Addenda



更多评论:有些人可能有兴趣进行上面提到的分割(毕竟使用字体转换器)是将字体转换为网页格式(如 WOFF )。这很好,但要小心,看看你正在分割/转换的字体的许可证是否允许如此广泛的重新分配。



当然,免费(如在自由)字体,你不必担心(这种字体最显着的许可之一是 OFL )。

I am already more than 8 hours trying to make the STHeiti Medium.ttc.zip font work on Windows.

But I can't make it work. Is anybody able to make it work on Windows?

解决方案

Assuming that Windows doesn't really know how to deal with TTC files (which I honestly find strange), you can "split" the combined fonts in an easy way if you use fontforge.

The steps are:

  1. Download the file.
  2. Unzip it (e.g., unzip "STHeiti Medium.ttc.zip").
  3. Load Fontforge.
  4. Open it with Fontforge (e.g., File > Open).
  5. Fontforge will tell you that there are two fonts "packed" in this particular TTC file (at least as of 2014-01-29) and ask you to choose one.
  6. After the font is loaded (it may take a while, as this font is very large), you can ask Fontforge to generate the TTF file via the menu File > Generate Fonts....

Repeat the steps of loading 4--6 for the other font and you will have your TTFs readily usable for you.

Note that I emphasized generating instead of saving above: saving the font will create a file in Fontforge's specific SFD format, which is probably useless to you, unless you want to develop fonts with Fontforge.

If you want to have a more programmatic/automatic way of manipulating fonts, then you might be interested in my answer to a similar (but not exactly the same) question.

Addenda

Further comments: One reason why some people may be interested in performing the splitting mentioned above (or using a font converter after all) is to convert the fonts to web formats (like WOFF). That's great, but be careful to see if the license of the fonts that you are splitting/converting allows such wide redistribution.

Of course, for Free ("as in Freedom") fonts, you don't need to worry (and one of the most prominent licenses of such fonts is the OFL).

这篇关于转换或提取TTC字体TTF - 如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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