Font families for the web

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by markus_petrux on October 25, 2008 at 10:11am

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?

Categories: , , ,

Comments

Borrow some info from Zen

Posted by johnalbin on October 25, 2008 at 4:42pm

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

Posted by robloach on November 4, 2008 at 1:40pm

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

Tripoli

Posted by HansBKK on November 5, 2008 at 1:40am

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

Posted by whatdoesitwant on March 14, 2009 at 8:08am

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?)

....

Posted by Munazzah on June 13, 2011 at 6:28pm

Theme development

Group organizers

Group notifications

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

AltStyle によって変換されたページ (->オリジナル) /