Rightpoint / BonMot

Beautiful, easy attributed strings in Swift
MIT License
3.54k stars 196 forks source link

Support using NSKernAttributeName for auto-kerning with UILabel #11

Open ZevEisenberg opened 9 years ago

ZevEisenberg commented 9 years ago

From the iOS 8.3 UILabel documentation:

To turn on auto-kerning in the label, set NSKernAttributeName of the string to [NSNull null].

To research

ZevEisenberg commented 9 years ago

Turns out NSKernAttributeName works like this for UIKit:

To consider for BonMot: should we always use [NSNull null], just in case the string is being used in Quartz drawing? Or should we provide a separate accessor, -attributedStringForBitmapDrawing or similar?