views:

562

answers:

1

I've been scouring the Internet for a while now for information on how one can alter the letter-spacing/kerning of a font within UIKit.

My fear is, that like using your own custom fonts, you simply can't. Which would be terrible news.

I know Apple is protecting us from bad design with these constraints, but they're also preventing us from implementing really great design too.

What do people suggest I do?

  1. Use the font with the standard kerning, people probably wouldn't notice the difference anyway.

  2. Find someone's hacked class to get the look the user deserves after parting with their hard earned cash.

  3. Use the method that I've somehow overlooked, and do it with UIKit, pledging my eternal gratitude to the person who imparts this hidden nugget of knowledge.

A: 

You may be able to do what you need using Quartz 2D. Specifically, the CGContextSetCharacterSpacing property can control spacing between letters. I'm not sure about kerning though.

Quartz 2D Programming Guide: Text

Jeff Kelley