The ordering of the font family names dictates the priority with which they are used. The names should be separated from one another by spaces but some font names may have spaces in them, so if you use font names containing spaces, they should be enclosed inside quotes. Make sure that you use a different kind of string delimiter quote for indicating font names to that which you use to enclose the string of font names.
As well as the names of any font families that you think may be installed in the target client browser, you can specify generic font families with the following keywords:
serif
sans-serif
cursive
fantasy
monospace
See also: | JSSTag.fontFamily, String.fixed(), style.font, style.voiceFamily |
Prev | Home | Next |
style.font | Up | style.fontSize |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |