XML technologies / ePUB / CSS essentials / Important CSS properties / Fonts
(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)
The table lists the main CSS properties for font display, with possible values and an example each.
font-family | Font family Defines the font. Alongside actual font names, always specify a generic family in case the named fonts are unavailable. |
Values |
|
Example |
|
font | Font formatting Shorthand for the combined font settings ( |
Values |
|
Example |
|
Small capitals Small capitals (uppercase letters) when | |
Values |
|
Example |
|
Font weight Defines text weight. In practice, only the named values ( OPS note: readers may map numeric values from 100 to 900 to a fixed value. | |
Values |
|
Example |
|
font-size | Font size Font size can use CSS units or fixed values ( OPS note: readers may map measurements to a fixed value. |
Values |
|
Example |
|
Font style Defines the text’s font style. OPS note: readers need not distinguish between | |
Values |
|
Example |
|
Letter spacing Defines spacing between individual characters. Word spacing also adjusts automatically, but can be changed with | |
Values |
|
Example |
|
Word spacing Defines word spacing without changing letter spacing (see | |
Values |
|
Example |
|
Copyright © mitp 2011
You may print the online version for your private use.
Otherwise, this chapter from “E-Books mit ePUB” is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Verlagsgruppe Hüthig Jehle Rehm GmbH, Im Weiher 10, 69121 Heidelberg, kundenbetreuung(at)hjr-verlag.de
back to top