7

The font called from [UIFont boldSystemFontWithSize xx] is not fixed-width, I don't know the exact name of this system font (iOS 6).

I'm wondering if there is a built-in fixed-width font? Otherwise I have to embed a new font to my app.

PS: maybe iOS 7 system font is fixed-width, LOL

Thanks guys.

JimZ
  • 1,182
  • 1
  • 13
  • 30
  • I think courier new is a built in monospaced font. – James P Jul 26 '13 at 14:16
  • YES, it is, but is it iOS built-in? Or...do you know how to check all the font that built-in iOS system? THANKS, your answer is so fast ! – JimZ Jul 26 '13 at 14:17
  • 1
    Yes it is built in, see Tyler's answer for a complete list. You can also get a list of all fonts off the device programatically, see here: http://stackoverflow.com/a/8529661/488611 – James P Jul 26 '13 at 14:20

1 Answers1

9

Here's the list of built-in fonts available on iOS: http://iosfonts.com.

Courier looks like the only monospace font in there.

Tyler
  • 371
  • 1
  • 7
  • 3
    Just to be clear: American Typewriter is not a fixed width typeface. (Part of its elegance is its subtle proportional spacing.) – John Laudun Jan 06 '14 at 14:07
  • 3
    According to that website, iOS 7 introduced a font called "Menlo" which is a sans-serif monospaced font. – Radu C Jan 12 '15 at 17:05