So, getting publisher fonts in an e-book is a bit tricky. Here’s a checklist you can use when the correct fonts don’t show up in your e-book:
You’ll have to…
- Add the font files to a fonts directory using Sigil (or any other e-book editor)
- declare the presence of the fonts and their variants (regular, bold, italic, bold-italic) in the Stylesheet.
- Call the font-family from the classes in the stylesheet
- Check for any encryption of the font files and remove that if it exists (which is illegal, but that’s not always relevant)
- Check for inconsistencies in the capitalization of the file names in the declarations
- Check for inconsistencies in the capitalization of the font-family names in the CSS classes
- Get the path to the font files exactly right (open the e-book in 7-zip to determine the structure of the e-book, no need for renaming to zip)
- Get the names and paths of the font files right in the Manifest (content.opf) (see #7 to find out what’s ‘right’)
- Get the media type of the font files right in the Manifest (different for each type of font)
Pagina EPUB-Checker will provide sensible error messages with line and column numbers.
There’s a lot that can go wrong with embedding font in e-books.
And then the reader chooses not to select the Publisher’s fonts in their e-reader options and all this work is moot.