简体   繁体   English

修复iOS的字体垂直对齐

[英]Fix font vertical alignment for iOS

We have a custom made font which we use on an iOS app. 我们有一种自定义字体,可在iOS应用上使用。 This font is displaced vertically respect the other fonts. 相对于其他字体,该字体在垂直方向上移位。

We usually used the ftxdumperfuser, but with the new El Capitan OSX release this app became incompatible. 我们通常使用ftxdumperfuser,但随着新的El Capitan OSX版本的发布,此应用变得不兼容。

So, is there any way to install this tool on El Capitan or is there any other tool to edit the ascender and descender of the font? 那么,有什么办法可以在El Capitan上安装此工具,或者是否有其他工具可以编辑字体的上升和下降?

The most obvious solution would be to tell the people who made the font for you to fix the baseline alignment. 最明显的解决方案是告诉为您制作字体的人员来修复基线对齐。

But, if that isn't an option, the simplest way to achieve this is to add a (or modify the) BASE table in your font, using whatever font editing tools you have available to you, for the scripts used in your font (if it's not specifically designed for non-western languages, that's typically just latn ) 但是,如果不是这样,那么实现此目的的最简单方法是使用可用的字体编辑工具为字体中使用的脚本在字体中添加(或修改) BASE表 (如果它不是专门为非西方语言设计的,则通常只是latn

Tools like TTX or FontForge are free, powerful, and require a bit of learning how to use them, tools like Fontlab (currently on v5, we're all waiting for v6 to go on sale) are easier to use, but also "expensive". 诸如TTXFontForge之类的工具是免费,强大的,并且需要学习一些使用方法,诸如Fontlab之类的工具(当前在v5上,我们都在等待v6上市)更易于使用,但“价格昂贵” ”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM