View Single Post
Old 05-02-2012, 01:22 PM   #204
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,481
Karma: 28000000
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by paulfiera View Post
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.
kovidgoyal is offline   Reply With Quote