Font families for the web

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
markus_petrux's picture

Hi,

I'm trying to compile a set of CSS classes for using in WYSIWYG editors to let users choose different fonts, but these classes would have to be as cross-browser / cross-platform as possible.

Here's a site with lots of information about this subject:

http://www.codestyle.org/css/font-family/index.shtml

And here's what I have compiled to date:

.font-arial {
  font-family: Arial, Helvetica, sans-serif;
}
.font-lucida {
  font-family: "Lucida Sans Unicode", "Lucida Grande", Lucida, sans-serif;
}
.font-tahoma {
  font-family: Tahoma, sans-serif;
}
.font-trebuchet {
  font-family: Trebuchet, "Trebuchet MS", Arial, Helvetica, sans-serif;
}
.font-verdana {
  font-family: Verdana, sans-serif;
}
.font-georgia {
  font-family: Georgia, Times, serif;
}
.font-times {
  font-family: "Times New Roman", Times, serif;
}
.font-courier {
  font-family: "Courier New", Courier, monospace;
}

Anyone has done something like this before? Suggestions?

Comments

Borrow some info from Zen

JohnAlbin's picture

Hey, that's good idea!

I’ve compiled a list of font family lists that might help you too. I’ve put that list in Zen’s html-element.css file. http://cvs.drupal.org/viewvc.py/drupal/contributions/themes/zen/zen/html... The relevant information starts at the top of the file and continues until you see “/** headings **/”.

The purpose of Zen's html-element.css is different than what you are working on, but, hopefully, you can get some really good information out of the Zen stuff to make your life easier.

  - John (JohnAlbin)

  - John (JohnAlbin)

Yahoo's Font Tips

RobLoach's picture

I always tend to use Yahoo's reset, base and fonts CSS:
http://developer.yahoo.com/yui/fonts/

Tripoli

HansBKK's picture

Out of the half-dozen or so CSS frameworks I've looked at, I really like the way Tripoli handles typography, their "Type plugin" defaults look great out of the box.

Lucida

whatdoesitwant's picture

Heh, this is funny. Markus_petrux starts talking about Lucida and all the earlier entries listed in the main topic are suddenly shown in lucida (console?). Was this done on purpose? How? (Perhaps an allowed opening tag without a matching tag in the comment? Is that allowed here?)

....

Munazzah's picture

Nice Ideas...
web design perth

Theme development

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week