Does iOS dev has build-in fixed width font?
Asked Answered
H

1

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.

Halidom answered 26/7, 2013 at 14:12 Comment(3)
I think courier new is a built in monospaced font.Leora
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 !Halidom
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: https://mcmap.net/q/144656/-how-to-check-if-a-font-is-available-in-version-of-iosLeora
L
9

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

Courier looks like the only monospace font in there.

Laoighis answered 26/7, 2013 at 14:17 Comment(2)
Just to be clear: American Typewriter is not a fixed width typeface. (Part of its elegance is its subtle proportional spacing.)Kraken
According to that website, iOS 7 introduced a font called "Menlo" which is a sans-serif monospaced font.Diplocardiac

© 2022 - 2024 — McMap. All rights reserved.