Quote:
Originally Posted by paulfiera
Thanks, Walt.
Just tried it. Same results. Font declarations are moved from the css file to every html/xhtml file.
I really wonder why calibre does that.
|
Because unlike most other css rules, @fontface rules apply globally, not via a selector. Therefore they can, in principle, be different for every HTML file.
@kiwidude: Cover insertion is possible, (and you dont need to use SVG) provided you are willing to take the chance that your epub will end up with two, possibly duplicated, covers, in the case where the cover in the original file is not identified correctly. Or the case where the first html file is identified as the cover, but it contains non cover content which will get deleted. EPUB files in the wild are mess.