How to use a custom font with dynamic text sizes in iOS7

前端 未结 12 2104
长情又很酷
长情又很酷 2020-11-29 14:41

In iOS7 there are new API\'s for getting a font that is automatically adjusted to the text size the user has set in their preferences.

It looks something like this to

12条回答
  •  情书的邮戳
    2020-11-29 15:27

    Just wanted to jump in and say that there's a library out there to help integrate custom fonts and deal with the Dynamic Type size changes. It's called, helpfully, Font (https://github.com/adamyanalunas/Font) and instead of being a magic solution it sets up a structure for handling each custom font differently while removing the boilerplate.

    n.b. I'm the author of this lil' library and I think it's neat.

提交回复
热议问题