You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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":
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
The text was updated successfully, but these errors were encountered:
Still, even if @andrecastro0o proposal is accepted (which I think it should), it should also be taken into account that application/vnd.ms-opentype might be the appropriate MIME type for TTF and OTF fonts (both of which are OpenType; not WOFF, though) in EPUB 3 only temporarily: application/vnd.ms-opentype is a vendor-specific media type that was created in lack of a IANA-approved standard one for those. Now there is one (application/font-sfnt) and issues requesting updating the EPUB 3 specs and, subject to the former’s resolution, epubcheck’s validation of that have been risen.
So, irrespective of this issue's resolution, Pandoc should keep those other issues in EPUB 3 and epubcheck on its look, and update EPUB 3's output accordingly depending on their resolution (not EPUB 2’s, whose spec is frozen and therefore mime type for fonts in that should be changed to application/vnd.ms-opentype and stay there).
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"
: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
The text was updated successfully, but these errors were encountered: