![]() |
bk.font_iter() is listing no fonts
Hi,
what am i doing wrong? Code:
def run(bk):mac os mojave, sigil 1.0.0 The fonts i have in the book are valid as they do show up in preview, in ADE and on my devices. Regardless of what fonts i'm adding the list is always empty :( |
Quote:
Please post the font manifest section of your test epub. For example, Code:
<item id="LinLibertineG30-Regular.ttf" href="LinLibertineG30-Regular.ttf" media-type="application/vnd.ms-opentype"/>Code:
def run(bk): |
1 Attachment(s)
Hi,
i added the file with sigil and the original item looks like this Code:
<item id="SourceCodePro-Regular.otf" href="Fonts/SourceCodePro-Regular.otf" media-type="font/otf"/>Code:
<item id="SourceCodePro-Regular.otf" href="Fonts/SourceCodePro-Regular.otf" media-type="application/vnd.ms-opentype"/>So is this a bug in sigil not choosing the right mimetype? As i said, i added the fontfile with sigil. |
Quote:
otf font/otf sfnt font/sfnt ttf font/ttf woff font/woff woff2 font/woff2 According to the epub3 specs, the following mime types are also acceptable: ttf application/font-sfnt otf application/vnd.ms-opentype woff application/font-woff I.e., font/otf is definitely a valid mime type. Maybe bk.font_iter() needs to be updated. |
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',Code:
def font_iter(self):Kevin I will push a fix for this to master today. Kevin |
This should now be fixed in master.
Thanks for your bug report. |
| All times are GMT -4. The time now is 08:44 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.