Quote:
Originally Posted by omro
Maybe someone can write an executable that reads an epub and changes the CSS and writes it back out?
|
Calibre can do this via its --extra-css option, but only for DRM-free ePubs, see
Fonts and Epub - What works on Sony, Works for Pocket Pro too! The extra CSS you need is identical to userStyle.css, and like userStyle.css you can refer to local fonts because you know they are in the right folder (because you put them there) - there is no need to embed the fonts in each ePub.
I have not looked to see if .css files are typically encrypted in DRMed ePubs. If not, then it might be possible to write a simple utility to add a userStyle.css to any existing ePub.