Jump to content


Photo

font-family


  • Please log in to reply
3 replies to this topic

#1 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 23 October 2006 - 01:22 PM

I was wondering about font's.  I have been using the same 4, but aren't font's specifically set up under families.

serif", "sans-serif", "cursive", "fantasy", "monospace" Those are the families right, then any sub-font's are fonts within that font family. Are there any font families other than those.
See I am trying to get a general idea on what all options are actuallya vailable with css font-family.  Does anyone know of a huge list of all the font families, what fonts are in those font families, atleast all the one's that are used in the browser's by default.  I am trying to get an idea of what all can be safely used, and what can be partially used, but you should have a backup for.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#2 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 23 October 2006 - 01:28 PM

Font-family is not a pre-defined thing. It is a way for you to define a family of fonts to use on a specified tag/grouping in CSS. With CSS, I'm fairly safe saying you're at complete liberty to come up with almost anything you can imagine, and if you syntax is correct, the browsers will render it. What happens with font-family is that the first one listed is the "default" that the browser will attempt to render with. If that font is not present on the computer, it falls back to the second, the third, and so on. Therefore, it is a good idea to round out the list with a "family" such as serif, sans-serif or mono. I could, however, mix them up and actually do something like this:
font-family: Verdana, "Times New Roman", "Trebuchet MS", Georgia, Arial, sans-serif;

Notice there are serif and sans-serif fonts present in my listing, but I eventually default back to sans-serif.

For any other specific questions you have on how to view fonts, check out the W3C font reference. It lists the only general font families to be serif, sans-serif, cursive, fantasy and monospace.
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#3 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 23 October 2006 - 01:54 PM

That link was exactly what I was looking for.  Thank you for the extra advice too.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#4 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 23 October 2006 - 02:09 PM

My Linux has Times New Roman as a mono-spaced font. Kind of annoying...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users