-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
EPUB3 media-type for a otf font in item manifest should be application/vnd.ms-opentype instead of application/x-font-opentype
When converting a markdown to epub3 using --epub-embed-font
and otf fonts the conversion results in EPUB where the manifest item for the font has an incorrect media-type. It uses:
<item id="VAGRoundedStd-Thin_otf" href="VAGRoundedStd-Thin.otf" media-type="application/x-font-opentype" />
The recommendation is to use media-type="application/vnd.ms-opentype"
:
"The media type application/vnd.ms-opentype should be specified as the media-type value in the item of the manifest that references an OpenType font." http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.3.1
When checking the EPUB with epubcheck it trows an Warning cause by the media-type media-type="application/x-font-opentype" : WARN: /stylesheet.css(5): Font-face reference VAGRoundedStd-Light.otf to non-standard font type application/x-font-opentype