diff --git a/src/calibre/ebooks/oeb/polish/container.py b/src/calibre/ebooks/oeb/polish/container.py index a748a3ec6aff..c6d3b1ec0177 100644 --- a/src/calibre/ebooks/oeb/polish/container.py +++ b/src/calibre/ebooks/oeb/polish/container.py @@ -125,6 +125,8 @@ def guess_type(self, name): ans = guess_type(name) if ans == 'text/html': ans = 'application/xhtml+xml' + if ans in {'application/x-font-truetype', 'application/vnd.ms-opentype'} and self.opf_version_parsed[:2] > (3, 0): + return 'application/font-sfnt' return ans def decode(self, data, normalize_to_nfc=True):