What are good web development fonts?

Go To StackoverFlow.com

16

I am searching for a list of fonts I can use in CSS. Since these fonts may be copyrighted, which fonts should I use that are available across Windows (as of XP), Mac OS X and, say, Ubuntu 8.04?

I don't want to rely solely on the newer OSs.

A great bonus would be if the same fonts existed on mobile devices.

2009-06-16 18:29
by Thomaschaaf
Copyright isn't your issue unless you are embedding the font - cgp 2009-06-16 18:33
Web designers should know enough not to use crazy fonts (as text of course - Chet 2009-06-16 19:14


17

See this list of browser safe fonts.

It's Windows+Mac centric, but still applies. They do include a linux distribution screenshot, as well.

2009-06-16 18:30
by Reed Copsey


9



8

The only 100% safe way to declare fonts is to use generics as fall backs.

The generics are:

  • 'serif' (e.g. Times)
  • 'sans-serif' (e.g. Helvetica)
  • 'cursive' (e.g. Zapf-Chancery)
  • 'fantasy' (e.g. Western) (wtf?)
  • 'monospace' (e.g. Courier)

From the W3C

All five generic font families are defined to exist in all CSS implementations (they need not necessarily map to five distinct actual fonts). User agents should provide reasonable default choices for the generic font families, which express the characteristics of each family as well as possible within the limits allowed by the underlying technology.

Fonts such as Arial and Verdana which many web designers take for granted may not be present on Linux browsers (even firefox on centOS from experience). Apple has most of the Microsoft fonts but there are some which are absent.

2009-06-16 19:05
by Nick Van Brunt


5

Typetester!

Features:

  • compare fonts side by side;
  • choose from the list of safe fonts, win fonts or mac fonts;
  • all from the browser.
2009-06-16 19:03
by scvalex


5

Just remember: Friends don't let friends use Comic Sans.

(Seriously, you've got good answers above already...).

2009-06-16 21:28
by RolandTumble


2

Verdana is a good one.

2009-06-16 18:30
by Robert Greiner


2

Here's a guide...

http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html

As for mobile, all I can say is good luck! My daughter got my Blackberry from me for five minutes and changed my background, ringtone, and now all my fonts are cartoon fonts.

Here's a list of iPhone fonts, but it maybe slightly out-of-date. http://daringfireball.net/misc/2007/07/iphone-osx-fonts

2009-06-16 18:32
by Nosredna


2

CSS allows you to use any fonts installed on the system. font-family allows you to list many fonts. If the parser doesn't find the first one installed on the system, it moves onto the next one. That's why most font-family definitions cascade down to sans-serif or serif. If the browser doesn't have any of your fonts, it uses the default serif, sans-serif, or monospaced font, etc.

If you're a sucker for typography, unfortunately until CSS3 fonts take off you're going to have to live with serving up all the good fonts to your Mac users, since Mac OS X has a far greater selection of great fonts installed than Windows. I get a little depressed when I load up my sites on Windows and I'm greeted with a pile of rigid, aliased fonts.

2009-06-16 18:34
by Andrew Noyes


1

You could use sIFR for headers and not worry about web-safe fonts at all. Take a look at the example page. It's pretty awesome.

2009-06-16 19:10
by cllpse


1

Arial is my "safe" font that I use all the time.

But I've been using Trebuchet a lot lately. It's common enough that practically everybody is going to have it. It's used all over the place at StackOverflow, FeedBurner, and a lot of other popular sites these days.

But, just in case the user doesn't have it, I'd use CSS like this (just like StackOverflow has it)...

font-family:Trebuchet MS,Helvetica,sans-serif;
2009-06-16 19:19
by Steve Wortham


1

I'd recommend using web fonts if you desire layout consistency and complete control over the fonts rendered for your site. Here are some web font services to check out:

  • WebINK - No longer offered
  • Google Web Fonts
  • TypeKit
  • Fonts.com

All of these services provide thousands of high-quality fonts. Google fonts are totally free. WebINK and TypeKit both require a subscription model. I've never used fonts.com but they probably have a similar model.

2012-05-18 21:57
by BitsEvolved


0

Here's a nice article about typefaces for the web.

A lot of fonts are available from modern browsers. However, keep it simple and a little large. Also, use contrasting colors for easier reading.

2009-06-16 18:32
by NotMe


0

While having such a list is certainly useful, you should also take advantage of the fallback mechanism of CSS. For example, you can list Consolas, Courier New, monospace in your font-family attribute and get the best possible match on that device.

The last item on each font-family list should be a neutral one such as "sans serif", "serif", "monospace", etc.

This way, your designers can use fonts they think best, as long as there's a reasonable downlevel experience.

See, for example w3.org's guidance

2009-06-16 18:42
by JasonTrue


0

You're pretty save with Helvetica/Arial (yes, I know there's a difference!) or Verdana for sans-serif or Georgia or Times for serif. In your css you can just put a list in your preferred order. You should always end in a generic font-family to cover all your bases.

My sites usually look something like this:

font-family: Helvetica, Arial, sans-serif;
font-family: Georgia, serif;

If you want to get cute and fancy with your typography, you should look into SIFR, which uses flash to embed special fonts.

2009-06-16 19:12
by Chet
Ads