0

I have an app designed for 5s with a font size of 13px. But when the same is run in iPhone6 Plus font is looking very tiny. Although position and size of the elements is adjusting accordingly to the size thanks to percentage based element position and layout.

Any idea on how to change the font according to screen size ?

Penkey Suresh
  • 5,816
  • 3
  • 36
  • 55
  • What about size classes and magic of auto layout? :) Also, looks like this question is a duplicate of http://stackoverflow.com/questions/27828038/how-do-i-handle-iphone-6s-pluss-font-size – Oleshko Dec 03 '15 at 13:47
  • @Oleshko I went through the question. It makes sense, but I can't change the font size with size classes and auto layout right ? Just confirming. – Penkey Suresh Dec 03 '15 at 13:54
  • 1
    You can do it in storyboard. Don't need to write conditions – Irfan Dec 03 '15 at 13:54
  • could you let me know how ? Using autoShrink ? I tried it but it doesn't see to do anything. At least in simulator – Penkey Suresh Dec 03 '15 at 13:56
  • I was talking about size classes. Are you using size classes in your project? – Irfan Dec 03 '15 at 13:59
  • as we are targeting only portrait size iPhones we didn't have to do it yet – Penkey Suresh Dec 03 '15 at 14:02

1 Answers1

4

Here is an example of how you can customize font for different devices (section Adaptive Fonts almost in the end of tutorial)

Short instruction how to do this:

  1. Select label in Interface Builder enter image description here

  2. Press + button near Font and select device size, for which you want to have another font enter image description here

  3. Set new font for that devicesenter image description here

Oleshko
  • 2,923
  • 4
  • 17
  • 25