Thanks! I’m not the first to do this by any stretch, and when I get a few minutes to reformat that very, very long source list, I’m going to post it in here. Quite a few alternate font stacks are listed in there.
As much as I love this article and want to use custom fonts in my design mockups which my clients would also love, these may not be the fonts they’ve chosen (or, near them).
Therefore, I’d say sometimes it’s safer or you’ll have to plain use sIFR.
Nonetheless, it’s great to know with stacks the probability of using some the non-standard web fonts are achievable. ![]()
Okay, here’s the enormous list of sources used for this article, reformatted for the forum. These sources deserve much of the credit for the info in this article :nod: (and none of the blame for my own errors and misperceptions).
- @font-face in IE: Making Web Fonts Work (Jon Tan tutorial about implementing @font-face in IE)
- 100 Best Fonts (listing of the most popular fonts, rather traditional in focus. Wish I could read German)
- 15 Excellent Examples of Web Typography; Under the Bonnet part II: taking a list apart (strong examination of the typography behind the [URL=“http://www.alistapart.com/”]A List Apart design)
- 16 Best-Loved Font Bits In Web Design (well-written examination of some of the writer’s favorite fonts – a nice mix of well-known fonts with others you may have seen but may not be able to readily identify)
- 3 Reasons Why the New Vista Fonts Suck
- 30 Fonts That ALL Designers Must Know and Should Own (good basic list, and some of the “must know” choices will surprise you)
- 465 Free Fonts for Ubuntu (many, many free fonts for Linux owners)
- A Plea From 16 Most Overused Fonts (whimsical article begging for the named fonts to just go away for a while; we’re all guilty of overusing at least one on this list)
- Admiration for Typography on the Web
- Adobe Originals (good Wikipedia article about the numerous fonts distributed over the years by Adobe)
- All Fonts Preview (nowhere near “all fonts,” but gives graphical comparisons of a large number of widely available Mac and Windows fonts in a comparable size)
- All you wanted to know about Web type but were afraid to ask (not nearly this comprehensive, but a good resource nevertheless)
- The Anatomy of Web Fonts (SitePoint article by Andy Hume, excellent basic tutorial. If you’re hopelessly confused, start here)
- Are Vista Fonts Ready for the Web?
- Arial versus Helvetica
- Beautiful Web Typography: 7 tips on de-sucking the web (fascinating slide presentation)
- Better CSS Font Stacks (one of the articles that gave me the impetus to write this article)
- The supplement to Better CSS Font Stacks
- Better ways to use fonts in web design (examples of smaller, tighter font stacks for a variety of fonts and desired effects)
- Better web typography (includes good primer tutorial, in PDF format)
- Bitstream Vera Fonts (Gnome source for free, licensed Bitstream fonts)
- Choosing the right font for your blog
- Common fonts to all versions of Windows and Mac equivalents (good if limited chart for comparison, good selection of screenshots)
- Complete Guide to Pre-Installed Fonts in Linux, Mac, and Windows (compare fonts to one another w/graphic images of different fonts; quite expansive and useful)
- Complete Microsoft ClearType Font Collection (graphical comparisons of variants of the Microsoft Vista fonts as viewed with ClearType font smoothing)
- CSS font matching: Windows, Mac and Linux
- CSS font sampler and survey
- CSS Font Stacks (alternative sets to my proposals; smaller, tighter stacks, with visible if limited comparisons)
- CSS and Vista’s New Fonts (discussion of Vista’s comparatively smaller fonts)
- DejaVu Fonts (free download of DejaVu fonts, originally intended for Linux users but free to all comers)
- Display Type and the Raster Wars (as noted in the article, Jon Tan’s acerbic and insightful view of Microsoft’s use of ClearType, with particular attention paid to how it works in IE 7)
- Don’t Be Afraid of Serif Fonts (nice study of sites successfully using serif fonts in their design)
- Downloading and Using Vista Web Fonts
- Supplement to Downloading and Using Vista Web Fonts
- The Elements of Typographic Style Applied to the Web (in-depth, book-length analysis of the various elements of typography)
- Evaluating fonts: kerning (Pascal’s quick examination of kerning and other issues, including some comparisons of kerning issues with Times New Roman)
- exljbris Free Font Foundry (free font download site, of markedly higher quality than your average fonts. Many come with variants such as italics, boldfaces, etc)
- Font Chart (VisiBone’s rather cramped but info-packed chart listing the 65 most widely available browser fonts and giving side-by-side comparisons – available in .GIF or on card stock)
- Font Families and Web-safe Fonts: The Point of Penultimate Resort (a discussion of “web-safe” fonts and the limitations of the concept in practice)
- Font-Family.com (auto-generates basic font stacks based on initial preferences)
- font-family discussion
- Font Finder (must-have Firefox add-on that allows you to select an element of a Web page and see its font stack and other CSS styling)
- Fontbooklets (cool, free method of examining and comparing fonts in both print and electronic displays)
- FFontMatrix (ambitious project still in development, to provide comparisons of font stacks as proposed by users)
- Fonts for the Web
- Fonts for web design: further comparison of cross-platform dependability (tables comparing frequency of fonts found on Windows, Mac, and Linux machines)
- Fonts for web design: a primer (good visual comparisons between some core font pairs)
- Fonts on the web and a list of web safe fonts
- Fonts included with each version of Windows (lists the fonts supplied with a number of Windows systems, also lists numerous non-English fonts such as Estrangelo Edessa, Shruti, and Vrinda).
- Fonts supplied with… (meticulous but out-of-date listing of fonts supplied with IE5x, FP 2000, Office 2000, Word 2000, Win 98, Win XP, and Win 2000)
- Fonts Used by Companies in Logos and Branding (lists the fonts used by companies in their logos and branding – in German, unfortunately for me)
- Free fonts from recognized font foundries
- Free UCS Outline Fonts - Summary (home of GNU FreeFont series)
- GNU FreeFont (view FreeFonts as they appear on screen)
- Download site for FreeFont series
- Great Fonts for Web 2.0 (good examples of some lesser-known alternatives used in more modern designs)
- The Helvetica Hegemony: How an unassuming font took over the world
- II Love Typography
- Increase Your Font Stacks With Font Matrix
- Font Matrix (large, fairly comprehensive font matrix showing fonts installed with various Mac, Windows, MS Office, and Adobe software; no Linux fonts and therefore not complete)
- Interview: Opening shots in the Second Font War
- Is Microsoft’s Vista Font Just a Copy? (article questioning if the Vista font Segoe UI is a ripoff of another font, Frutiger)
- It’s time we take back Times New Roman on the web (nifty tricks to breathe new life into an old chestnut)
- Legally Get Vista Fonts from Microsoft, No License Required (by installing the PowerPoint Reader)
- Let’s Talk About x, Baby (x-height discussion)
- Liberation Fonts (source for Linux RedHat Liberation series free fonts)
- Liberation fonts (official RedHat source for Liberation fonts)
- Liberation fonts (informative Wikipedia article on the Liberation fonts)
- Linux equivalents Verdana, Arial fonts (comparison between several Linux fonts and “core” fonts Arial and Verdana, as well as a monospace comparison. Very useful, but I wish the author had provided a similar comparison to “core” serifs)
- Linux Font Equivalents to Popular Web Typefaces
- Linux fonts (mostly X11)
- List of fonts in Mac OS X (features an excellent graphic giving examples of the many, many fonts OS X users have available to them)
- The Logos of Web 2.0 (fonts often used to achieve that “Web 2.0” look)
- Lookalike Fonts (by no means a comprehensive list, but a fair compilation of free “lookalike” fonts that match up, more or less, with commercial fonts)
- Luxury Type (design and typography maven Jeff Croft gives us some slightly less traditional stack alternatives)
- Mac OSX 10.4 Fonts List
- Mac OSX 10.5 Fonts List
- Microsoft’s ClearType Font Collection: A Fair and Balanced Review (detailed review of Microsoft’s six Vista fonts)
- MiniFonts (source of some of those cool small, clear "pixel"fonts you see around the Web)
- Pixel Fonts, Screen Fonts, Bitmap Fonts, Small Fonts (a listing of several small-font and pixel-font providers)
- Mozilla Developer Center: font-size-adjust
- The Myth Of ‘Web-Safe’ Fonts
- The Next Big Thing in Online Type (thoughtful, sympathetic examination of the six main Vista fonts)
- The New CSS Font-Family List (gives some rather attenuated alternatives to my stacks)
- The new typography (among other things, documents the large penetration of the Lucida family of fonts)
- New Vista Fonts and The Web
- Not-so ClearType :: Apple FTW (Sitepoint blog slamming Microsoft ClearType)
- The Palatino FAQ
- The Principles of Beautiful Typography (excellent and comprehensive excerpt from Jason Beaird’s book The Principles of Beautiful Design; this is a good place to begin exploring the entire subject of typography in Web design)
- Reading Design (strong ALA article)
- Simple CSS: Creating More Readable Text (excellent, if quite basic, walkthrough to creating usable, readable font displays on your page)
- Smashing Magazine (has a number of articles on fonts and typography, including a number of free font offerings that stand well above the usual freebie offerings, quality-wise)
- Start Testing Your Designs With and Without ClearType
- Thirteen Ways of Looking at a Typeface (just read it)
- To Anti-Alias or Not to Anti-Alias? (good discussion of whether or not to use aliased fonts in design and testing)
- To Helvetica and Back (a celebration of the myriad variants of Helvetica, and an offering of several alternatives)
- Topics: Design: Typography (excellent ALA article archive)
- Trebuchet Nation
- Typechart (gives extensive and varied samples of some major Win and Mac fonts, as well as the CSS to use them)
- Typetester (invaluable resource for comparing fonts with one another)
- Typographic Alternatives to Helvetica (some lesser-known choices in the listing makes this article all the better)
- Typographica
- Typography on the web (another good intro page, with graphic examples)
- Typogrify (compilation of Django templates that automatically add CSS and other styling to your typography)
- Typogrify: easily produce web typography that doesn’t suck (walkthrough of Typogrify functions)
- Typophile
- Visual reference to 19 fonts for cross-platform web design
- Web Design is 95% Typography
- Web Standards Creativity: Innovations in Web Design with XHTML, CSS, and DOM Scripting (Google books excerpt only); Budd, Clarke, Lloyd, et al; copyright 2007 friends of ED
- Web Safe Fonts (lists well over 100 Web fonts, their chances of being installed on various computers, and a visual comparison; does not list Linux fonts, and does not show fonts not installed on your machine)
- Web Style Guide: Typography (another comprehensive primer)
- Web typeface specimen screens (excellent compilation of detailed “specimen screens” for a number of common Windows and Mac fonts)
- Web Typography
- Web Typography Cheat Sheet (aptly named article, nice reminder of the benefits of spacing, sizing, etc)
- Web Typography Sucks
- Web Typography Tutorial (strong primer for the ideas behind web typography and font selection, with copious illustrations)
- Windows loves Arial (article about Windows XP forcing users to view sites in Arial over Helvetica)
- Windows Vista Fonts Compared to Typical Web Fonts (PDF file, provides side-by-side comparisons of Vista fonts to various Windows and sometimes Linux fonts)
- World Class Cities (explains where the names for all those old Mac fonts such as Chicago and New York came from)
Good sources and/or lists of so-called “core” fonts:
- Core fonts for the Web
- SourceForge’s free, licensed download site for Microsoft’s core fonts
- Microsoft’s TrueType core fonts (alternate source of Microsoft core fonts, intended for Linux users but free for all comers)
- Microsoft Typography: Fonts and Products for Windows
- Fonts supplied with Mac OS
- Fonts supplied with UNIX / XFree and GhostScript
Interesting article. I had not thought about font stacks before, something I’ll consider for the next site I develop.
Thanks for the list of sources. Unfortunately, the links to the pages aren’t displaying.
Not sure why that is. They work for me. Anyone else having problems with the links not working?
They show up fine in the forum discussion thread, but not in the article comments. Since Deborah is listed as a ‘SitePoint Community Guest’ I think it’s safe to assume that she’s looking at the comments at the end of the article, not the forum thread.
The things I don’t know… Thanks, Tommy. Deborah, join us. We’re in the Web Design discussion thread:
Blimey! Those a good number of links!
I have to confess that the article gave more questions than answers… maybe the answers are there ![]()
The thing is that while I understand that typography is truly important, my knowledge of design is not that good and I always end up using the typical (Helvetica, verdana, arial, tahoma, etc… as sans-serif fonts as an example)
I find hard to get the font that will produce the right effect on my site, and knowing that most people will not be able to see it as intended doesn’t help much. This has always been an outstanding subject for me.
As you said, it is a good starting point… and I am still not sure of how to make things work out…
Lack of time doesn’t help of course.
Or maybe in the parts that didn’t make it past the final edit…?
Well, if you just don’t know and you don’t have the time to do the research, certainly the safest bet is to stick with the Web-safe and screen-safe fonts.
Hmmm. Off the top of my head, a safe Helvetica/Arial font stack might be something like:
"Myriad Pro", Myriad, "DejaVu Sans Condensed", "Nimbus Sans L", "Helvetica Neue", Helvetica, Arial, sans-serif;
with the two Myriad variants for the Mac users, two for Linux users, the two Helveticas (I like the Neue variant so I always put it before the plain-vanilla Helvetica), then Arial as a final backstop. Of course, if you don’t like Myriad as your leadoff font choice, you could simply drop it, or swap it out for something else. If you like Helvetica a lot, as my pal Leon Paternoster does, you might try:
"Helvetica Neue", Helvetica, "DejaVu Sans Condensed", "Nimbus Sans L", Arial, sans-serif;
It’s like Lincoln logs, you just keep swapping them around until you find a combination you like.
So how long did it take you to do all this stuff? ![]()
I did it between plowing the south 40 and buffing my nails
No, seriously, it took a good while, mostly because when I embarked on the article I realized just how ignorant of the subject I really was, so a lot of my time was spent reading and correlating info. I might know more than I did two months ago, but I still have a great deal to learn.
I would advise AGAINST using such font stacks in most cases. Here is why:
-
They use half-popular, platform-specific or obscure fonts as first choices, before defaulting to an almost standard MS Core Font. Which means that you’ll end up with 31% of users seeing one font, 22% seeing another one, 12% seeing yet another one, 8% seeing yet another one, etc. And since actual letter size varies between fonts for a same font-size — unless you use font-size-adjust, only supported by Firefox3 and other browsers show no sign of wanting to support it… — you may end up with unreadable text for smaller or medium font-sizes.
-
They’re quite obese. Yet every font has its possible quirks. One specific font may not have italics or bold (then you end up with extrapolated oblique text or boldified text, which is definitely not nice, especially the boldified disasters), and since you’re using a lot of fonts in your font stack you probably don’t know the specifics of each one. Way to get unpredictable results.
Don’t get me wrong, I definitely know there is not absolute control of the way text appears on web pages. Good web design should definitely plan for text that will appear bigger or smaller than expected. But sometimes, after taking basic measures to ensure that visual text accessibility will be good, you may also want to optimize your layout for, say, 40% or 70% of your readers who DO have such or such font, and such optimization requires shorter, less obscure font stacks.
As long as you’re going to provide a link to a “CSS file” of these font family call-outs, you might as well provide a file that actually validates. Having typos and invalid font designations makes you appear sloppy, at best.
Try this:
/****************
- From the article “8 Definitive Web Font Stacks”
- by Michael Tuck
- Copyright SitePoint 2008
- The general ordering is: the less widespread Windows fonts,
- then Mac fonts, then Linux varieties, then universal fonts,
- and finally, the generic family name. This is why the more
- well-known fonts (Arial, Verdana, Georgia) bring up the rear.
*/
/* Times New Roman-based stack */
.times { font-family: Cambria, “Hoefler Text”, Utopia, “Liberation Serif”, “Nimbus Roman No9 L Regular”, Times, “Times New Roman”, serif; }
/* Modern Georgia-based serif stack */
.constantia { font-family: Constantia, “Lucida Bright”, Lucidabright, “Lucida Serif”, Lucida, “DejaVu Serif”, “Bitstream Vera Serif”, “Liberation Serif”, Georgia, serif; }
/* Traditional Garamond-based serif stack */
.garamond { font-family: “Palatino Linotype”, Palatino, Palladio, “URW Palladio L”, “Book Antiqua”, Baskerville, “Bookman Old Style”, “Bitstream Charter”, “Nimbus Roman No9 L”, Garamond, “Apple Garamond”, “ITC Garamond Narrow”, “New Century Schoolbook”, “Century Schoolbook”, “Century Schoolbook L”, Georgia, serif; }
/* Helvetica/Arial-based sans serif stack */
.helvetica { font-family: Frutiger, “Frutiger Linotype”, Univers, Calibri, “Gill Sans”, “Gill Sans MT”, “Myriad Pro”, Myriad, “DejaVu Sans Condensed”, “Liberation Sans”, “Nimbus Sans L”, Tahoma, Geneva, “Helvetica Neue”, Helvetica, Arial, sans-serif; }
/* Verdana-based sans serif stack */
.verdana { font-family: Corbel, “Lucida Grande”, “Lucida Sans Unicode”, “Lucida Sans”, “DejaVu Sans”, “Bitstream Vera Sans”, “Liberation Sans”, Verdana, “Verdana Ref”, sans-serif; }
/* Trebuchet-based sans serif stack */
.trebuchet { font-family: “Segoe UI”, Candara, “Bitstream Vera Sans”, “DejaVu Sans”, “Bitstream Vera Sans”, “Trebuchet MS”, Verdana, “Verdana Ref”, sans-serif; }
/* Impact-based sans serif stack */
.impact { font-family: Impact, Haettenschweiler, “Franklin Gothic Bold”, Charcoal, “Helvetica Inserat”, “Bitstream Vera Sans Bold”, “Arial Black”, sans-serif; }
/* Monospace stack */
.monospace { font-family: Consolas, “Andale Mono WT”, “Andale Mono”, “Lucida Console”, “Lucida Sans Typewriter”, “DejaVu Sans Mono”, “Bitstream Vera Sans Mono”, “Liberation Mono”, “Nimbus Mono L”, Monaco, “Courier New”, Courier, monospace; }
Florent, you make some good points. Some of the issues raised in your post were addressed, to an extent, in the original article.
This is true to an extent. You have to be careful in what fonts you choose in your stacks. Many fonts are of similar (not identical) letter size, and can be safely (relatively safely) substituted one for another without an appreciable shift in display.
Some of the stacks are quite large. Some are more streamlined. As I explained (and some of this explanation got edited out), many of the stacks have four or five variants of the same fonts – i.e. the Palatino family – to give the widest possible exposure of that particular font.
(Edit: That Garamond stack needs work.
)
True, and this is something each designer will have to decide for him/herself. If a designer isn’t bothered by the way a particular font is “boldified,” or his/her design doesn’t use boldface enough to make it a consideration, then that designer won’t care about fonts having italics or bold versions. Others will draw different conclusions. That’s why a designer has to have a strong baseline knowledge of fonts/typography, and make some informed decisions. But to just throw out the idea of using various font stacks and sticking to the usual four or five is, to my mind, more limiting than being a bit more adventurous and taking some risks with your design’s display.
Oftentimes it does. Others it does not. You’re basically saying, “err on the side of caution and on uniformity.” Some designers will want to expand their horizons a bit – and in the process, run the risk of changing their site’s display on some users’ machines. You weigh your options, do the research, and make your decisions. My article is just one of many sources of information about the subject, not a hard-and-fast advocacy of using this or that particular method or approach.
Good response, and thanks!
This is great and I would love to see a follow up article talking about the other aspects of typography such as line spacing, letter spacing, font sizes between headings etc.
Greg, I’m not sure on what you’re basing your rather pointed criticism. If you’re referring to the text file, the snippets were obviously presented for use within someone’s CSS file. A designer may not want to use .times as a class identifier, for example. Or they may want to add to, or subtract from, the fonts. Most people will put these in their CSS files as part of their body or paragraph elements, and thereby not use any of the identifiers you’ve given. In the text file Sitepoint provided for the article, designers can cut/paste and insert a particular with little editing, if they choose. (I wouldn’t, not without doing some testing.) With your CSS snippets, it’s very likely they’ll have to edit out some of what you’ve given them. It’s just personal preference, but I’d rather let the user add their own stuff if they desire, and not force them to delete unwanted code. Other than this, I don’t see the “typos and invalid font designations” that you say are there. I did a rather quick comparison of your stacks and the ones in the text file, and outside of the class identifiers and the opening and closing brackets, I don’t see anything else that might qualify. I would appreciate your identifying the typos so I can ask the editors to make the appropriate changes.
I’ve proposed another article, or articles, drawn from the original “monster” article. I hope I can indeed provide a follow up. E-mail the SP staff! ![]()
A good read, Thanks
A follow up article would be great, in my opinion ![]()
Mine, too!
Greg Raven sent me an e-mail pinpointing the typos he found. He wrote,
The two things that jumped out at me were: 1) a quoted font name with the comma inside the end quote, and 2) “sans serif” instead of “sans-serif”.
He’s right. In the text file accompanying the article, he found this in the Georgia stack:
"DejaVu Serif,"
Not correct; the comma goes outside the quotation mark, not inside. He also found
sans serif
instead of the properly written
sans-serif
in all four sans-serif stacks. He has better eyes than I do. Good catches, Greg.