Use the EPUB version specific mime type when embedding fonts

This commit is contained in:
Kovid Goyal 2022-07-10 20:13:14 +05:30
parent 23b7b7ee5f
commit 709f5343a0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)