如何将多个字形从一个字体文件(otf)一次传输到另一个? [英] How do I transfer several glyphs at once from one font file (otf) to another?

查看:76
本文介绍了如何将多个字形从一个字体文件(otf)一次传输到另一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我有一些字体文件,这些字体文件当前具有拉丁字母字形,并且我想将阿拉伯字符从其他字体文件导入这些字体文件.是的,万一有人担心,阿拉伯字形来自免费供个人使用的字体,而拉丁字符则来自我自己的知识产权.我只想找到一种快速导入所有阿拉伯字形的方法,而无需一次执行一次.有没有已知的快速简便方法?谢谢.

Basically, I have a few font files that currently have Latin alphabet glyphs and I want to import Arabic characters from a different font file to these font files. Yes, the Arabic glyphs are from a free-for-personal-use font, in case anyone was worried about that, and the Latin characters are from my own intellectual property. I just want to find a way to import all of the Arabic glyphs in a quick way that does not involve doing them one at a time. Is there a known quick-and-easy method? Thanks.

推荐答案

最好的解决方案是弄清楚如何在OS中启用后备字体.任何可以读取现代TTF或OTF字体的操作系统都应支持此功能.它将使您的字体保持其原始形式,这意味着更少的工作,更少的测试和更轻松的维护.

The best solution would be to figure out how to enable fallback fonts in your OS. Any OS that can read modern TTF or OTF fonts should support this. It would let you keep the fonts in their original form, which means less work, less testing and easier maintenance.

FontForge(免费工具)可以合并字体:请参见此处.但是我怀疑这可能无法得出最佳结果.阿拉伯字体往往包含许多连字和其他复杂功能,而且我认为这些功能所需的所有内部字体表都不会合并在一起.您必须进行大量测试,以确保阿拉伯文的结果仍然看起来不错.

FontForge (a free tool) can merge fonts: see here. But I suspect this may not give an optimal result. Arabic fonts tend to contain many ligatures and other complex features, and I don't think all the internal font tables required for these features will be merged across. You'd have to test extensively to ensure that the Arabic results still looked good.

您可能会更幸运,只需在FontForge中打开两种字体,从您自己的字体中选择整个拉丁字形,然后将其复制粘贴到阿拉伯字体中即可.然后将结果另存为合并字体.这意味着将保留任何用于阿拉伯特征的特殊表格,而丢失用于拉丁字形的特殊表格(例如基于类的字距调整).成对字距调整将保留.作为拉丁字体的作者,您将对这种字体的成功有一定的了解.

You may have more luck just opening both fonts in FontForge, selecting the full range of your latin glyphs from your own font, and copy-pasting them into the Arabic font. Then save the result as your merged font. That would mean any special tables for Arabic features are retained, while those for Latin glyphs (such as class-based kerning) are lost. Pairwise kerning would be retained. As the author of the Latin font, you'll have some idea of how successful this might be.

还有其他字体功能不一定会同时适用于两种字体,例如升/降指标,蓝色值等.最终可能会导致小尺寸的拉丁字体显示效果不佳,甚至被切掉顶部和字符的底部.这些都可以解决,但是需要时间和仔细的测试.制作精良的字体是经过高度调整的机器,正确地合并两种字体是一个耗时的过程.

There are other font features that won't necessarily work well with both fonts, such as the ascender/descender metrics, blue values, etc. You could end up with poor rendering of Latin at small sizes, or even chopped off tops and bottoms of characters. These can all be fixed, but it takes time and careful testing. A well-made font is a highly tuned machine, and merging two fonts properly is a time-consuming process.

这篇关于如何将多个字形从一个字体文件(otf)一次传输到另一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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