在 iPhone 应用程序中嵌入连字字体
我想知道如果我尝试在 iPhone 应用程序中使用带有大量连字的字体会发生什么?我无法尝试该字体,因为我需要先购买它,但如果我的 iPhone 应用程序中无法使用连字,我也不想浪费钱。
这是我正在谈论的字体: Dear Joe 3
I尝试在我的 iPhone 应用程序中使用阿拉伯语,效果非常好。阿拉伯语是一种充满连字的文字,但话又说回来,Apple 可能只支持阿拉伯语的这种特定连字字体,而不支持其他字体。
如果您对我在购买无法使用的昂贵字体之前如何测试它有任何建议,我将非常感激...
谢谢!
I was wondering what happens if I try to use a font with lots of ligatures in my iPhone App? I can't try the font because I need to buy it first, but wouldn't want to waste the money if ligatures were not possible in my iPhone app.
This is the font I'm talking about: Dear Joe 3
I tried to use Arabic in my iPhone app and that works perfectly. Arabic is a script full of ligatures, but then again, Apple may be just supporting this particular ligature font for Arabic and no others.
I'd be very grateful if you had any suggestions of how I could test this before I buy an expensive font which won't work...
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
支持iOS> 3.2 通过设置
kCTLigatureAttributeName
http://developer.apple.com/library/ios/#DOCUMENTATION/Carbon/Reference/CoreText_StringAttributes_Ref/Reference/reference.html
但为什么不先尝试其他免费的连字字体呢?
再次更新:
I've tested on both Simulator and iPhone 4 with a TRUE ligature featured font (yes I was faked by a ligature font without ligature feature before)
这是结果:
黑色是 UILabel,描边是 CoreText
以及它应该如何渲染:
查看附加连字“ll”和标准连字“ff”
设置
时 kCTLigatureAttributeName
改为0
可以删除所有连字但将其设置为
2
无法支持字体“Bello Pro”的附加连字,例如“ll”或“Th”(默认为
1
,适用于“ff”或“fl”等连字)所以我猜测 iOS 的 CoreText 引擎存在错误,或者我的字体不受支持。
It is supported for iOS > 3.2 by setting
kCTLigatureAttributeName
http://developer.apple.com/library/ios/#DOCUMENTATION/Carbon/Reference/CoreText_StringAttributes_Ref/Reference/reference.html
but why not try other free ligature font first?
Updated again:
I've tested on both Simulator and iPhone 4 with a TRUE ligature featured font (yes I was faked by a ligature font without ligature feature before)
here's the result:
Black is UILabel, stroke is CoreText
And how it should be rendering:
Take a look on the additional ligature "ll" and the standard ligature "ff"
While setting
kCTLigatureAttributeName
to0
can remove all ligaturebut setting it to
2
cannot support additional ligature like "ll" or "Th" for the font "Bello Pro"(Default is
1
, that's for ligature like "ff" or "fl")So I guess there is either a bug in the CoreText engine for iOS or my font is not supported.