Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do you know of a resource that lists all the font-families with their fall-backs that are good on the web?

Tags:

html

css

fonts

Note: I've made a few edits here as I didn't get my question across very well the first time around.


Update: After doing some of my own research on this subject, I've come up with a perfect example of why I'm searching out the perfect list of font-family with fall-backs: http://www.brownbatterystudios.com/sixthings/2007/03/14/lucida-hybrid-the-grande-alternative/

body {
font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; 
}
strong, em, b, i {
font-family: "Lucida Sans", "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
}

I'm suspecting that someone else has done a detailed list like this and rather than my doing it all again, I'd love to make use of someone elses hard work. If no one else has done this, then I'll go ahead and start my own?


I know how to search for web safe fonts, and how to include fall-backs for the different browser types to get close to my desired font and we've all done this many times before. However, I once saw an example of where someone had saved a list of all the fall-backs in a style sheet and all you needed to do was comment out the ones you weren't using.

The list appeared to contain most of the fonts that anyone would ever want to use, and rather than continuously scouring around the web every time to create my own list, I'm wondering if anyone else knows of this or any other list of fonts with fall-backs?

Example:

body {
font-family:Arial,Helvetica,"Bitstream Vera Sans",sans-serif;
/* 
font-family:"Trebuchet MS","Bitstream Vera Sans",Verdana,Arial,Helvetica,sans-serif;
font-family:Consolas,Monaco,Liberation Mono,Lucida Console;
...
*/
}

In my example above, you'll see font-family:Consolas,Monaco,Liberation Mono,Lucida Console; (snagged from SO's style sheet) and none of the resources listed so far would result in my building that fall-back family. Is Monaco similar to Consolas? Is this a good fall-back list for someone who primarily wants Consolas? If it is, then I want this added to my list of acceptable font-families...

Cheers,
Steve

like image 847
Steve Perks Avatar asked Dec 30 '22 06:12

Steve Perks


2 Answers

I just bookmarked SitePoint's 8 Definitive Font Stacks today, and plan to incorporate these into future projects.

like image 63
Carl Camera Avatar answered Jan 01 '23 20:01

Carl Camera


I use fonttester to test and try web safe fonts combinations

EDIT: in fonttester if you ask "Trebuchet" you'll get:

font-family: 'Trebuchet MS', Helvetica, sans-serif;
like image 34
Luis Melgratti Avatar answered Jan 01 '23 20:01

Luis Melgratti