View Single Post
Old 07-01-2020, 01:45 AM   #61
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,063
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by mirage View Post
It's not in any of the css files.

Here's what the opf file contains for an invalid example of this:

Code:
<item href="fonts/Shift-BoldItalic.otf" id="Shift-BoldItalic.otf" media-type="application/vnd.ms-opentype"/>
<item href="fonts/Shift-Light.otf" id="Shift-Light.otf" media-type="application/vnd.ms-opentype"/>
For epubcheck to be happy, you need to change "application/vnd.ms-opentype" to "font/otf". What I find funny is that instead of complaining about the font media-type in the content.opf, epubcheck complains about where the font-family entry is found either in a stylesheet or in a style declaration in a xhtml file.
DNSB is offline   Reply With Quote