Quote:
Originally Posted by Vroni
what am i doing wrong?
|
bk.font_iter() might fail, if the fonts don't have the proper mime type.
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"/>
The following quick & dirty version will also work with fonts that have the wrong mime type:
Code:
def run(bk):
print('xxx-|Start|-xxx')
for id, href, mime in bk.manifest_iter():
if href.endswith('tf'):
print('xxx-|',id , '|-xxx')
print('xxx-|',href , '|-xxx')
print('xxx-|',mime , '|-xxx')
print('xxx-|End|-xxx')