Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What font will iOS choose for sans-serif?

I'm very curious what font iOS actually chooses when setting font-family: sans-serif. I can't seem to find the answer anywhere, so I'm asking here.

body {
    font-family: sans-serif; /* What font will iOS choose? */
}
like image 323
Kim Hogeling Avatar asked Nov 20 '13 09:11

Kim Hogeling


People also ask

Does Apple use sans serif?

SF Pro. This neutral, flexible, sans-serif typeface is the system font for iOS, iPad OS, macOS and tvOS.

What font is closest to sans serif?

Best sans serif fonts Other well-known sans serif fonts include Helvetica, Arial, and Futura.

Which font is used in iOS?

SF Pro is the system font in iOS and iPadOS.

What is the best use for sans serif fonts?

Sans serif fonts also work well where there's very little room for copy. Signs, text in apps, and names on maps tend to be sans serif. (There are exceptions, of course. Some sans serif font families, like Arial, are meant to work as body copy — text that goes on for more than a sentence or two.)


1 Answers

The default sans-serif font on iOS 6 and iOS 7 is Helvetica. I've set up a test with this CSS:

div.default {
    font-family: sans-serif;
}

div.helvetica {
    font-family: 'Helvetica', serif;
}

The result is the very same. I also inspected it using the developer tools, to make sure the styles are applied correctly.

iOS 6

enter image description here

iOS 7

enter image description here

like image 140
insertusernamehere Avatar answered Sep 27 '22 21:09

insertusernamehere