Why Does Kerning fail for NSAttributedString in IOS7

前端 未结 1 1475

My app has a UILabel formatted as an NSAttributedString with the attribute: \'NSKernAttributeName @1.9,\'

  1. When the below code is compiled on iPad running
1条回答
  •  一生所求
    2021-01-07 11:27

    OK. I had the same problem (see comment above). It depends on the font (I used Courier as well). For some strange reason Courier does not support kerning (in iOS7!). Use CourierNewPSMT and everything works as expected .... at least for me.

    BTW: Here is a nice list of fonts on the iphone: http://iosfonts.com/

    0 讨论(0)
提交回复
热议问题