I'm having a problem with custom UIFonts. I load 6 of them (font A in regular/bold/regularItalic/boldItalic, font B in condensed/condensedSlanted variants).
However, here is what it gives when rendered:
The two first rows are OK, but the last one exhibits a baseline problem.
I've tried changing the UPM, ascender, descender, x-height of the font in FontLab so that it matches the first font's values (which render correctly), but to no avail. I've tried converting the font format from OTF to TTF, no luck. Whatever I try, it always renders this way.
Does anyone have experience with this?
Here or even here you can find the solutions for you. It's all about baseline.
Note There's a problem with installing Apple Fonts Utility on El Capitan. See https://apple.stackexchange.com/questions/211138/apple-font-tools-cannot-install-in-macbook-pro-el-capitan for a workaround.
OR you can easily change NSBaselineAttributeName as follows: