ericgoetsch / googlefontdirectory

Automatically exported from code.google.com/p/googlefontdirectory
0 stars 0 forks source link

Per-font, suggested CSS font-family fallback list. #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
On a page such as:

  http://code.google.com/webfonts/family?family=Ubuntu#code

the user is presented with a default fallback of:

  h1 { font-family: 'Ubuntu', arial, serif; }

despite this only being an example, it seems that people use it verbatium.  In 
this case a sans-serif font falls back to a serif font as the point of last 
resort.  Ideally it would be possible to specific per-font a better suggested 
fallback sequence, in the case of Ubuntu the preference would currently be 
(improvements welcomed):

  font-family: Ubuntu, "Bitstream Vera Sans", "DejaVu Sans", Tahoma, sans-serif;

Original issue reported on code.google.com by sladen@gmail.com on 24 Dec 2010 at 3:45

GoogleCodeExporter commented 9 years ago
It might be also worth switching the example in all cases to be:

  body { font-family: ...; }

as this would switch a website over wholesale without confusion, more technical 
people are able to customise later, but this makes it easier to get started for 
those less familiar.

Original comment by sladen@gmail.com on 24 Dec 2010 at 4:51