|
home / documentation / reference / fontfamily
FontFamily
- Description:
- The font designation for text that appears in menu items.
- Value:
- String, "", or JavaScript expression that returns a string/"".
- Applies To:
- Menu Items.
- Browser Compatibility:
- FontFamily is supported in all browsers, though not all browsers
may recognize all possible CSS values (especially Netscape 4.x).
- Comments:
- FontFamily should be applied as a string, which means the
value you supply should always be in quotes. Allowed values for FontFamily
are the same as those allowed in the standard CSS font-family property
(see the W3C Specs)
and in fact, the value you supply is transferred as is to the JavaScript
fontFamily property for each menu item.
- Examples:
// Ok:
FontFamily:"Helvetica, sans-serif", // Helvetica or sans-serif
FontFamily:"MS Sans Serif",
FontFamily:"", // use style sheet default
FontFamily:(HM_Mac)?"Geneva":"Arial", // Geneva on Mac; else Arial
// Incorrect:
FontFamily:Arial, // quotes required
FontFamily:"150", // must be valid font identifier
FontFamily:"(HM_Mac)?'Geneva':'Arial'", // no quoted expressions here
- Default:
- "Arial, sans-serif"
- See Also:
-
FontStyle,
FontSize,
FontWeight,
FontColor,
FontColorOver,
FontColorSelected,
Using Classes Mini-Tutorial
|