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:

  1. 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.


  2. 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.

   

 

 

 

back to top