XML technologies / ePUB / ePub für (In)Designer / Embedded fonts and special characters / Font settings by category

(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)

In CSS specify a font category; the actual font depends on the e-reader. A sans-serif font defined in a CSS style might appear as Arial on one device and Helvetica on another. The iPad divides fonts into five categories: Serif, Sans-Serif, Monospace, Cursive and Fantasy.

To use only categories, adapt your CSS file. The generic-family code is font-family: [Kategorie];.

p.Mein-Absatzformat-Serif {      
        font-family: serif;
  }
      
p.Mein-Absatzformat-Sans-Serif {
      font-family: sans-serif;
  }
      
      
p.Mein-Absatzformat-Monospace {
      font-family: monospace;
  }
      
      
p.Mein-Absatzformat-Cursive {
      font-family: cursive;
  }
      
      
p.Mein-Absatzformat-Fantasy {
      font-family: fantasy;
  }

  

 

 

 

back to top