Error embedding fonts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Trying to embed fonts in EPUB produces IndexError: list index out of range. Font spec is "Charis SIL", Georgia, serif. Error report is:
calibre, version 5.36.0
ERROR: Unhandled exception: <b>IndexError<
calibre 5.36 embedded-python: True is64bit: True
Linux-5.
('Linux', '5.4.0-97-generic', '#110-Ubuntu SMP Thu Jan 13 18:22:13 UTC 2022')
Python 3.8.5
Interface language: None
Successfully initialized third party plugins: Count Pages (1, 11, 2) && Embed Comic Metadata (1, 6, 1) && EpubMerge (2, 12, 0) && EpubSplit (3, 2, 0) && Fantastic Fiction (1, 5, 1) && Favourites Menu (1, 1, 0) && Find Duplicates (1, 9, 2) && Generate Cover (2, 1, 0) && Goodreads (1, 5, 3) && Markdown Output (1, 0, 3) && MultiColumnSearch (1, 0, 87) && Open With (1, 7, 0)
Traceback (most recent call last):
File "calibre/
File "calibre/
File "calibre/
File "calibre/
IndexError: list index out of range
That's because one of the html files in your book has no <head> run the
fix html tool first and you should be fine. I can of course have the
embed tool insert head for you, but doing this for every single tool is
not really possible. In general you should fix html before running other
tools.