XML technologies / ePUB / ePub für (In)Designer / Embedded fonts and special characters / Selecting font names
(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)
At the next level, specify not just a font category but one or more font names to use when available. The fonts are not yet embedded. Use the same code as for font categories, adding the font name in quotation marks: font-family: "Times New Roman", serif;. This tells the device to use Times New Roman. If unavailable, another serif font is selected.
You can also specify several font names. The code is then: font-family: "Optima", "Verdana", sans-serif;. The device checks for Optima, then Verdana if Optima is absent. If neither exists, it uses another sans-serif font.
p.Times-New-Roman {
font-family: "Times New Roman", serif;
}
p.Baskerville {
font-family: "Baskerville", serif;
}
p.Cochin {
font-family: "Cochin", serif;
}
p.Georgia {
font-family: "Georgia", serif;
}
p.Palatino {
font-family: "Palatino", serif;
}
p.Verdana {
font-family: "Verdana", sans-serif;
}
p.Multi {
font-family: "Optima", "Verdana", sans-serif;
}Font names also let iBooks access one of its more than 50 other installed fonts. For unexplained reasons, however, its font management is not fully developed and even installed fonts do not always display correctly. A list of fonts supplied with iOS 5 is available at iOS 5: Font list — Apple Support.
Copyright © dpunkt.verlag GmbH 2012
You may print the online version for your private use.
Otherwise, this chapter from “ePub für (In)Designer” 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.
dpunkt.verlag GmbH, Wieblinger Weg 17, 69123 Heidelberg, fon 06221-14830, fax 06221-148399, hallo(at)dpunkt.de
back to top