在 iPhone 应用程序中嵌入连字字体

发布于 2024-10-30 00:49:14 字数 365 浏览 1 评论 0原文

我想知道如果我尝试在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

虚拟世界 2024-11-06 00:49:15

支持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

enter image description here

And how it should be rendering:
enter image description here

Take a look on the additional ligature "ll" and the standard ligature "ff"

While setting kCTLigatureAttributeName to 0 can remove all ligature
but 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文