XML technologies / ePUB / Open Publication Structure / Integrating layout with CSS / Embedded fonts in CSS
(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)
CSS can address fonts directly. Since CSS 2, a font not installed on the reader can also be included through the stylesheet, an embedded font. The rule @font-face specifies its name and location. The property font-family accesses it by that name.
That is the theory, and it works technically on some readers. In practice, embedded fonts pose two major problems:
The licensing problem: Embedding a font necessarily gives it to the purchaser in the ePUB. It can easily be extracted from this open file format. Such redistribution would usually require a licensing agreement with the font vendor, which seems impractical.
Uncertain font support: Some tested readers support embedded fonts, but many more ignore them and offer fixed system fonts. Apple iBooks prominently does so, offering five user-selectable fonts: Baskerville, Cochin, Palatino, Times New Roman and Verdana.
For these reasons, embedded fonts are currently best avoided.
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