Fonts for Windows, Linux and Mac on the Web
Article by Stefan Trost | Last update on 2020-10-05 | Created on 2011-11-27
The fonts pre-installed on Windows, Linux and macOS are not identical, although there are certain similarities and congruencies. However, in the development of websites, you want to ensure a consistent typeface for each system.
Font equivalents for different systems
Fortunately, there are on each system fonts that look similar to a font on a different system. The following table shows some of the equivalents. Nevertheless, of course, any computer and each system have different requirements. Some users may have installed additional fonts, some have outdated systems or there are missing specific fonts for other reasons.
Type | Windows | Linux | Mac |
sans-serif | Arial | Garuda, Jamrul, FreeSans | Helvetica, Arial |
sans-serif | Arial Black | Gadget | Arial Black |
serif | Book Antiqua, Palation Linotype | FreeSerif | Palatino |
cursive | Comic Sans | TSCu Comic | Comic Sans |
monospace | Courier New | FreeMono, Nimbus Mono L | Courier, Courier New |
serif | Georgia | Nimbus Roman No 9 L, Norasi | Georgia |
sans-serif | Lucida Sans Unicode | Garuda, Gardi, Mukti Narrow | Lucida Grande |
sans-serif | Tahoma | Kalimati | Geneva |
serif | Times New Roman | FreeSerif, Times | Times, Times New Roman |
sans-serif | Verdana | Bitstream Vera Sans, Deja Vu | Verdana, Geneva |
Each name of a font in the table is formatted in the appropriate font. Thus, it is easy to look up, whether the fonts are supported by your own system and how they look. If a font is not installed on your system, your browser's default font is used instead.
CSS Notation
In the CSS file, you can use the following line to write down font alternatives:
h1, h2, h3, p { font-family: Helvetica, Arial, FreeSans, Garuda, sans-serif; }
For all elements, that should get the font (here headings and paragraphs), we are defining a "font-family" with a list of relevant fonts for Windows, Linux and Mac. The browser looks now, what fonts are installed on the system and takes the first installed font of the list.
For example, if Helvetica is not installed, Arial is taken. If Arial is not available, FreeSans is taken, then Garuda and then the default sans serif font ("sans-serif"). As it is always possible that no font of the list is installed (we assume, for example, smart phones, etc), we should write the type (here without serifs) as the last element of the font list, so that the browser can show the default font of this type.
About the Author
You can find Software by Stefan Trost on sttmedia.com. Do you need an individual software solution according to your needs? - sttmedia.com/contact
Show Profile
Related Topics
MySQL: Line Breaks in MySQL
Tip | 0 Comments
Lazarus: Detect Operating System (Compiler Switch)
Tutorial | 0 Comments
Find fixed width Fonts on the Computer
Tutorial | 0 Comments
Windows Batch Script: Computer Shutdown
Tutorial | 2 Comments
XAMPP: How to set up SSL/HTTPS for local Projects
Tutorial | 4 Comments
PrintMyFonts is not printing all fonts - What can I do?
Article | 0 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.