From edfedd41ca9203a58e0900f9b6c6fce2dff53b77 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 14 Jan 2015 14:24:53 +0530 Subject: [PATCH] Add the IANA registered mime-type of application/font-sfnt to the set of mimetypes calibre recognizes for font files --- src/calibre/ebooks/oeb/polish/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/container.py b/src/calibre/ebooks/oeb/polish/container.py index 21c7b445db..7899e79bdd 100644 --- a/src/calibre/ebooks/oeb/polish/container.py +++ b/src/calibre/ebooks/oeb/polish/container.py @@ -41,7 +41,7 @@ from calibre.utils.zipfile import ZipFile exists, join, relpath = os.path.exists, os.path.join, os.path.relpath -OEB_FONTS = {guess_type('a.ttf'), guess_type('b.otf'), guess_type('a.woff'), 'application/x-font-ttf', 'application/x-font-otf'} +OEB_FONTS = {guess_type('a.ttf'), guess_type('b.otf'), guess_type('a.woff'), 'application/x-font-ttf', 'application/x-font-otf', 'application/font-sfnt'} OPF_NAMESPACES = {'opf':OPF2_NS, 'dc':DC11_NS} class CSSPreProcessor(cssp):