While most of these are pretty self-explanatory, i.e.
Given what we learned above, we can lookup the default monospace fonts for each platform, which gives us:įont-family : ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace
Droid Sans Older versions of Android 7 Helvetica Neue Even older versions of OSX Arial, sans-serif Fallback The Monospaced System UI CSS Font Stackįor developers it would be nice to have a monospaced equivalent, but so far nobody seems to have assembled the necessary fonts.
Roboto Newer versions of Android” 2 Oxygen Linux / KDE 3 Ubuntu Linux / Ubuntu 4 Cantarell Linux / GNOME 3 5 Fira Sans Firefox OS 6. In CSS, the font-family property defines a specific font for an element and how its text content will look and be rendered.Font-family : system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif īefore we get to the monospaced part, it’s worth going through each font to see where its comes from and what the monospace equivalent should be: Font Usage system-ui The default system font when supported 1 -apple-system, BlinkMacSystemFont Older versions of macOS and iOS Segoe UI Microsoft Windows, Xbox, etc. Some common styles within each font family are listed below: Serif Fonts Now that we've covered the basics of font terms and descriptions, its time to look at the many different font styles within each family.
How to choose a font for your website – font names There are two more generic font types available, fantasy and cursive, but the most widely used fonts are the ones mentioned above. This makes text align nicely and makes it easy to follow, giving designs a clean appearance and mechanical feel. So, with the monospace typeface, all letters have the same width. With the previous font types we've discussed so far, each letter has a different width. With this font type, every letter has the same fixed width and letters are equally spaced apart. Sans-serif fonts are considered modern, minimalistic, contemporary and a bit more readable choice for high resolution computer screens. This font type has straight ends on each letter and there are no strokes at the edges, making the characters look sharp and flat and with clean lines. This type of font creates a clean design look, while at the same time being very readable and clear. Serif fonts are considered to be among the most classic, elegant, and traditional fonts you can use. But they don't always display well on screens. Serif fonts are traditionally used widely in print as they are considered readable for lengthy passages of text.
Serif fonts are characterised by the little extra fine details on the ends of the letters.Īt the end of the main strokes of characters, there are small flourish strokes called serifs. In addition, we'll cover the syntax and how to use the font-family property so that with the help of CSS, you can choose and then use different fonts in your web design projects.įirst, let's discuss some of the most common and frequently used font types that modern browsers support. In this article, we'll go over the differences between the two most popular font types, Serif and Sans Serif. You can select the type of font you want to use, whether it's bold or not, how big it is, and you can even change the color and add different spacing or decorations to it. You can modify how your HTML text appears in many ways using CSS. How text is formatted affects how readable your designs and webpages are. Choosing the right font is an important first step in making your website usable and accessible.