Yes, this is a bug as I updated the media-types based on the latest iana spec which icludes the new font/* style recommended media types:
Here is the updated list of recognized font media types:
Code:
'font/woff2' : 'Fonts',
'font/woff' : 'Fonts',
'font/ttf' : 'Fonts',
'font/otf' : 'Fonts',
'font/sfnt' : 'Fonts',
'font/collection' : 'Fonts',
'application/vnd.ms-opentype' : 'Fonts',
'application/font-sfnt' : 'Fonts', # deprecated
'application/font-ttf' : 'Fonts', # deprecated
'application/font-otf' : 'Fonts', # deprecated
'application/font-woff' : 'Fonts', # deprecated
'application/font-woff2' : 'Fonts', # deprecated
'application/x-font-ttf' : 'Fonts', # deprecated
'application/x-truetype-font' : 'Fonts', # deprecated
'application/x-opentype-font' : 'Fonts', # deprecated
'application/x-font-ttf' : 'Fonts', # deprecated
'application/x-font-otf' : 'Fonts', # deprecated
'application/x-font-opentype' : 'Fonts', # deprecated
'application/x-font-truetype' : 'Fonts', # deprecated
'application/x-font-truetype-collection' : 'Fonts', # deprecated
But I forgot to fix the code in the bk.font_iter() to match that expanded list:
Code:
def font_iter(self):
# yields manifest id, href, and mimetype
for id in sorted(self._w.id_to_mime):
mime = self._w.id_to_mime[id]
if mime.find('font-') > -1 or mime.endswith('-ttf') or mime.endswith('truetype') or mime.endswith('opentype'):
href = self._w.id_to_href[id]
yield id, href, mime
So this code needs to be updated to include the new font/* media types.
Kevin
I will push a fix for this to master today.
Kevin