title: Why specifically do custom fonts generally fail to display correctly in iOS?
body: <p>I have created a number of different applications with custom fonts.  I've used about six different ones, all from different sources.  Each of them had problems when displayed in iOS.  With some of them they drew in UILabels either higher or lower than a system font of the same size.  Others drew differently in UILabels when compared to how they drew in UITextFields, drawing smaller and lower in UITextFields.  Virtually all of them draw differently in UITextFields when they are being edited vs when they are not, giving an effect of the text jumping downwards when the UITextField enters edit mode.  For someone doing fine detail work that needs to be pixel-perfect this is pretty bad.</p>
  
  <p>My question is simply this--<strong>what in these fonts specifically causes these types of issues?</strong>  Is there some specific attribute that the system font has that these other fonts do not?</p>
  
  <p>For extra credit, I would love to hear any general purpose solutions that can solve these issues for every font, if such a thing is possible.  My hope is that if I can understand why this is happening I can create a script to preprocess the font before packaging it with the application so that it works correctly.</p>
  
  <p>These problems are easy to reproduce, but since I know someone will ask, I will list a few specific fonts that have produced problems for me:</p>
  
  <ul>
  <li>PT Sans Bold</li>
  <li>Avenir Next LT Pro Medium Condensed</li>
  <li>Korolev Condensed Medium</li>
  </ul>