Is it possible to include custom fonts in an ebook and have them show up in iBooks, or can you only use the various default fonts listed on the device?
|
It is certainly possible to embed custom fonts and have them be used in iBooks, as well as on other CSS fileThis is just like using fonts on the web: the first thing you need to do is define
and then use that declaration in for whichever styles you'd like to use that font:
content.opf fileJust like all the other files in your
The above steps are sufficient for most reading systems, but iBooks has one more hoop to jump through: com.apple.ibooks.display-options.xmlThis is a file that goes in the
A more in-depth writeup can be found on Liz Castro's excellent blog. As noted elsewhere, be aware that there are some potential hurdles, both legal and practical, to embedding fonts. |
||||
|
|
|
To extend on Tom's answer I have to disagree with how the media type is written for Truetype and I would also like to show how its written for Opentype. In the Truetype fonts
media type for Truetype is: Opentype fonts
media type for Opentype should be: Prior versions of Epubcheck I want to say used to check for this but I haven't tested it within Be careful on how you code your paths when declaring the Note you cannot just include a master
If you are not going to use the font you should remove it from the package and comment it out in the |
|||||||||||||
|