0

I'm using a font here that has different looks for uppercase and lowercase numbers. This works perfectly in text editors, and Adobe's tools (by settings labels to uppercase only), and I figured this would work in UIKit as well by just running the string through the uppercaseString method, but it doesn't seem to actually turn the numbers into their uppercase versions.

So… How can I turn numbers into uppercase in UIKit? Can I?

Christian A. Strømmen
  • 3,181
  • 2
  • 25
  • 46
  • Did you try `- (NSString *)uppercaseStringWithLocale:(NSLocale *)locale`? – petert Mar 27 '13 at 16:15
  • I did try uppercaseStringWithLocale with both systemLocale, currentLocale, my own and en_US. Neither had any effect. And yes, some fonts seem to have uppercase and lowercase numbers. – Christian A. Strømmen Mar 27 '13 at 18:14

1 Answers1

0

This blog post may help.

Also note that while there are quite a few different terms for these, in the world of typography they are more typically known as lining and old-style figures, not "uppercase and lowercase numbers"

djangodude
  • 5,362
  • 3
  • 27
  • 39
  • Hi djangodude, we're looking for a font expert for our startup (en.youscribe.com). Are you interested in doing some work for us or know someone who can help us on these subject (as a contractor) ? If so, feel free to contact me : yann.robin (at) youscribe [.com] – Yann Apr 05 '13 at 16:00