Open ZevEisenberg opened 9 years ago
Turns out NSKernAttributeName
works like this for UIKit:
NSNumber
: adjusts tracking@0
: disables font kerning (ugly, only do this if you have a very good reason)[NSNull null]
- enables pretty font Kerning. It's not clear from the documentation, but this is necessary only for manual attributed string drawing. In UIKit, even if you don’t set this property, this is the default behavior.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?
From the iOS 8.3
UILabel
documentation:To research
UILabel
? What aboutUITextView
,UITextField
, Core Animation, and Core Graphics?