font
A shorthand property for setting "font-style", "font-variant", "font-weight", "font-size", "line-height", and "font-family", at the same place in the stylesheet. The syntax of this property is based on a traditional typographical shorthand notation to set multiple properties related to fonts. Value is [ [ <font-style> || <font-variant> || <font-weight> ]? <font-size> [ / <line-height>]? <font-family> ] | caption | icon | menu | message-box | small-caption | status-bar | inherit CSS2 Reference: "font" property
Attribute information
Namespace: None
Schema document: fo.xsd
Type: Anonymous
Properties: Local, Unqualified
Value
- Type based on xsd:token
Valid value inherit
- List of:
- Union of:
- Type based on xsd:token
Valid value Description normal A font that is classified as "normal" in the UA's font database. italic A font that is classified as "italic" in the UA's font database, or, if that is not available, one labeled 'oblique'. Fonts with Italic, Cursive, or Kursiv in their names will typically be labeled "italic". oblique A font that is classified as "oblique" in the UA's font database. Fonts with Oblique, Slanted, or Incline in their names will typically be labeled "oblique" in the font database. A font that is labeled "oblique" in the UA's font database may actually have been generated by electronically slanting a normal font. backslant A font that is classified as "backslant" in the UA's font database. inherit
- Type based on xsd:token
Valid value Description normal A font that is not labeled as a small-caps font. small-caps A font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font, for example by taking a normal font and replacing the lowercase letters by scaled uppercase characters. As a last resort, unscaled uppercase letter glyphs in a normal font may replace glyphs in a small-caps font so that the text appears in all uppercase letters. inherit
- Type based on xsd:token
Valid value Description normal Same as "400". bold Same as "700". bolder The next weight that is assigned to a font that is darker than the inherited one. If there is no such weight, it simply results in the next darker numerical value (and the font remains unchanged), unless the inherited value was "900", in which case the resulting weight is also "900". lighter The next weight that is assigned to a font that is lighter than the inherited one. If there is no such weight, it simply results in the next lighter numerical value (and the font remains unchanged), unless the inherited value was "100", in which case the resulting weight is also "100". 100 200 300 400 500 600 700 800 900 inherit
- Type based on xsd:token
Valid value Description xx-small HTML size 1 x-small small HTML size 2 medium HTML size 3 large HTML size 4 x-large HTML size 5 xx-large HTML size 6
- Type based on xsd:token
Valid value larger smaller
- Type based on xsd:string
- Pattern: [\+\-]?\d+(\.?\d+)?(pc|px|pt|mm|cm|in|em)
- Type based on xsd:string
- Pattern: [\+\-]?\d+(\.?\d+)?%
- Type based on xsd:token
Valid value inherit
- Type based on xsd:token
Valid value serif sans-serif cursive fantasy monospace
from type fo:font-stylefrom type fo:font-variantfrom type fo:font-weightfrom type fo:font-sizefrom type fo:absolute-sizefrom type fo:relative-sizefrom type fo:length-percentage-or-inheritfrom type fo:lengthfrom type fo:percentagefrom type fo:inheritfrom type fo:font-size-slash-line-heightfrom type fo:font-familyfrom type fo:family-namefrom type fo:generic-family - Type based on xsd:token
- Union of:
- Type based on xsd:token
Valid value Description caption The font used for captioned controls (e.g., buttons, drop-downs, etc.). icon The font used to label icons. menu The font used in menus (e.g., dropdown menus and menu lists). message-box The font used in dialog boxes. small-caption The font used for labeling small controls. status-bar The font used in window status bars.
from type fo:inherit
Used in
- Attribute group fo:font
- Anonymous type of element fo:bidi-override via reference to fo:common-font-properties
- Anonymous type of element fo:block via reference to fo:common-font-properties
- Anonymous type of element fo:character via reference to fo:common-font-properties
- Anonymous type of element fo:initial-property-set via reference to fo:common-font-properties
- Anonymous type of element fo:inline via reference to fo:common-font-properties
- Anonymous type of element fo:leader via reference to fo:common-font-properties
- Anonymous type of element fo:page-number via reference to fo:common-font-properties
- Anonymous type of element fo:page-number-citation via reference to fo:common-font-properties
- Anonymous type of element fo:page-number-citation-last via reference to fo:common-font-properties
- Anonymous type of element fo:scaling-value-citation via reference to fo:common-font-properties
- Anonymous type of element fo:title via reference to fo:common-font-properties
- Attribute group fo:common-font-properties via reference to fo:font
- Attribute group fo:shorthand-properties via reference to fo:font