XML technologies / XSL-FO / Reference / Attributes in XSL-FO / font
(Excerpt from "XSL-FO ― Die Referenz" by Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Recommendation section: 7.31.13
Category: 7.31 Shorthand Properties
Description
This font shorthand combines values for font-style, font-variant, font-weight, font-size, line-height, and font-family. Values for font-size and font-family are required; the others are optional. Separate the values by spaces. If line-height is supplied, it must immediately follow font-size, separated from the preceding font-size value by a slash (/) rather than a space. Alternatively, available system fonts may be used instead of assembling individual properties. They already have fixed characteristics, and their names reflect the context in which they are used.
Values
A string | Values for font-style, font-variant, font-weight, font-size, line-height, and font-family, separated by spaces. Only font-height and line-height are separated by a slash (/). The optional font-style, font-variant, and font-weight values may appear in any order. They must be followed by the font size (font-size) with optional line height (line-height). The font family (font-family) must come last. |
caption | This value references an available system font intended for window titles, including selection windows. |
This value references an available system font intended for icon labels. | |
menu | This value references an available system font intended for menus, such as drop-down menus and menu lists. |
message-box | This value references an available system font intended for dialog boxes. |
small-caption | This value references an available system font intended for small selection palettes. |
status-bar | This value references an available system font intended for the status bar. |
Inherited: | yes |
XSL-FO version: 1.0
Allowed in:
<fo:bidi-override> , <fo:block> , <fo:character> , <fo:initial-property-set> , <fo:inline> , <fo:leader> , <fo:page-number> , <fo:page-number-citation> , <fo:page-number-citation-last> , <fo:scaling-value-citation> and <fo:title>
Support:
Conformance level | Antenna House | FOP | RenderX XEP | Altsoft XML2PDF | Compart DocBridge |
Complete | Y | P | Y | Y | Y |
XSL-FO example:
In the output:
Excerpt from the W3C Recommendation:
More information online about
Property description in the CSS reference "font"
Rendering of the property in the XSL-FO reference