Casebash
Casebash

Reputation: 118862

Spacing between characters on the iPhone

I have a label and I wish to increase the spacing between characters.

Any ideas on how to achieve this?

Upvotes: 0

Views: 700

Answers (2)

Frank Schmitt
Frank Schmitt

Reputation: 25775

There is a way to insert a half space, but I don't recall the exact command (option-spacebar?). Wikipedia has a complete list of spaces you can use.

Another approach would be a UIWebView with the letter-spacing CSS attribute set.

Upvotes: 1

pix0r
pix0r

Reputation: 31280

You're better off creating a custom view and using your drawRect routine to draw the text manually. You can use CFAttributedString to hold your text along with kerning information.

Update: sounds like you can't actually use CFAttributedString to draw text on the iPhone. You can still use your drawRect to draw the customized text, but it will take some more work to actually get your custom kerning to work.

Upvotes: 1

Related Questions