diff --git a/resources/mime.types b/resources/mime.types index 75452bb17a..f54443f30c 100644 --- a/resources/mime.types +++ b/resources/mime.types @@ -787,12 +787,10 @@ application/x-font-framemaker application/x-font-ghostscript gsf application/x-font-libgrx application/x-font-linux-psf psf -application/x-font-otf otf application/x-font-pcf pcf application/x-font-snf snf application/x-font-speedo application/x-font-sunos-news -application/x-font-ttf ttc ttf application/x-font-type1 afm pfa pfb pfm application/x-font-vfont application/x-freemind mm @@ -1368,8 +1366,6 @@ text/fb2+xml fb2 text/x-sony-bbeb+xml lrs application/x-sony-bbeb lrf lrx application/adobe-page-template+xml xpgt -application/x-font-opentype otf -application/x-font-truetype ttf application/x-mobipocket-ebook mobi prc azw application/x-topaz-ebook tpz azw1 application/x-mobipocket-subscription pobi @@ -1381,3 +1377,7 @@ application/x-cb7 cb7 application/x-koboreader-ebook kobo image/wmf wmf application/ereader pdb +# See http://idpf.org/epub/30/spec/epub30-publications.html#sec-core-media-types +application/vnd.ms-opentype otf +application/font-woff woff +application/x-font-truetype ttf diff --git a/src/calibre/ebooks/oeb/base.py b/src/calibre/ebooks/oeb/base.py index 2af72a07fb..50df05ed16 100644 --- a/src/calibre/ebooks/oeb/base.py +++ b/src/calibre/ebooks/oeb/base.py @@ -258,7 +258,7 @@ OPF_MIME = types_map['.opf'] PAGE_MAP_MIME = 'application/oebps-page-map+xml' OEB_DOC_MIME = 'text/x-oeb1-document' OEB_CSS_MIME = 'text/x-oeb1-css' -OPENTYPE_MIME = 'application/x-font-opentype' +OPENTYPE_MIME = types_map['.otf'] GIF_MIME = types_map['.gif'] JPEG_MIME = types_map['.jpeg'] PNG_MIME = types_map['.png']