From 709f5343a0d7c397fab8eec36cba5532f364a086 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 10 Jul 2022 20:13:14 +0530 Subject: [PATCH] Use the EPUB version specific mime type when embedding fonts --- 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 74e0a26f9c..4cae8e3a61 100644 --- a/src/calibre/ebooks/oeb/polish/container.py +++ b/src/calibre/ebooks/oeb/polish/container.py @@ -938,7 +938,7 @@ class Container(ContainerBase): # {{{ name. Ensures uniqueness of href and id automatically. Returns generated item.''' id_prefix = id_prefix or 'id' - media_type = media_type or guess_type(name) + media_type = media_type or self.guess_type(name) if unique_href: name = self.make_name_unique(name) href = self.name_to_href(name, self.opf_name)