View Single Post
Old 12-10-2009, 03:09 PM   #18
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by omro View Post
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.
wallcraft is offline   Reply With Quote