How to Display different Custom arabic fonts in iPhone application?

前端 未结 2 363
一向
一向 2021-01-06 08:23

In my application i need to display arabic text with different custom fonts. I follow the scenario adding ttf files to info.plist.

As per

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-06 08:42

    There is a nice UILabel extension in GitHub called "Font Label": https://github.com/zynga/FontLabel This allows to load any TTF file and then draw ZLabel objects (ZLabel is an extension of UILabel) with this custom font. It is based on CoreGraphics and I tested with many custom fonts and proved to work correctly. I don't know of course the effect with arabic fonts, but it's worth a try and a feedback from you (to us and also the github project admins) is welcome.

提交回复
热议问题