git.iko.soy/typeable/pandoc
on master help sign in
Fix MIME type for TrueType fonts in EPUBs (#6464)

Per the EPUB 3.2 spec, "application/x-font-truetype" is no longer a valid identifier for TrueType (.ttf) fonts [1]. This fixes warnings when validating pandoc-generated EPUBs using `epubcheck` [2]. References [3]. [1]: https://www.w3.org/publishing/epub3/epub-spec.html#sec-core-media-types [2]: https://github.com/w3c/epubcheck

commitbf95282436436061341c80a41df585a33c849fec authorMichael Reed <michael@michaelreed.io> dateWed 17 Jun 2020, 12:15 (6 years ago) parenta6a7f08
1 file changed+1−1
src/Text/Pandoc/MIME.hs+1−1
src/Text/Pandoc/MIME.hs+1−1
@@ -461,7 +461,7 @@ mimeTypesList =
461461 ,("ts","text/texmacs")
462462 ,("tsp","application/dsptype")
463463 ,("tsv","text/tab-separated-values")
464− ,("ttf","application/x-font-truetype")
464+ ,("ttf","application/font-sfnt")
465465 ,("txt","text/plain")
466466 ,("udeb","application/x-debian-package")
467467 ,("uls","text/iuls")