本文介绍了如何一次将多个字形从一个字体文件 (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.

推荐答案

最好的解决方案是弄清楚如何在您的操作系统中启用后备字体.任何可以读取现代 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) 传输到另一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 13:19
查看更多