Embedding Ligature Font in an iPhone App

I was wondering what would happen if I try to use a font with a lot of ligatures in my iPhone application? I can’t try the font, because first I need to buy it, but I wouldn’t want to spend money if ligation was not possible in my iPhone application.

This is the font I'm talking about: Dear Joe 3

I tried using Arabic in my application for iPhone and it works fine. Arabic is a script full of ligatures, but again, Apple can just support this particular ligature font for Arabic and others.

I would be very grateful if you had any suggestions on how I can check this before buying an expensive font that won't work ...

Thanks!

+4
source share
1 answer

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 another free ligature font?

Updated:


I tested on both Simulator and iPhone 4 with the characteristic TRUE ligature font (yes, I used to fake a ligature font without a ligature function)

here is the result: Black - UILabel, stroke - CoreText

enter image description here

And how it should be rendering: enter image description here

Take a look at the optional ligature "ll" and the standard ligature "ff"

If you set kCTLigatureAttributeName to 0 you can delete the entire ligature, but setting it to 2 cannot support an additional ligature like "ll" or "Th" for the font "Bello Pro"
(The default is 1 , for ligatures, for example, "ff" or "fl")

So, I think there is a bug in the CoreText kernel for iOS or my font is not supported.

+7
source

Source: https://habr.com/ru/post/1346717/


All Articles