AliSoftware / OHAttributedLabel

UILabel that supports NSAttributedString
https://github.com/AliSoftware/OHAttributedLabel/wiki
1.51k stars 344 forks source link

Difference between OHAttributedLabel and UILabel with standart fonts #96

Closed itvexesme closed 11 years ago

itvexesme commented 11 years ago

With Arial 15 font, OHAttributedLabel have difference with UILabel. On OHAttributedLabel text displays with scaled spaces between characters and different characters line spacing.

Compare: up - UILabel, down - OHAttributedLabel Compare: up - UILabel, down - OHAttributedLabel

AliSoftware commented 11 years ago

I'm afraid we can't do much about it. AFAIK, the reason for this difference is because UILabel uses UIKit and UIFonts to draw text and OHAttributedLabel uses CoreText and CTFonts. And there is a slight difference between the two Apple implementations and font versions of these two Apple frameworks (you may issue a bug report to Apple anyway if you feel like it)