View Single Post
Old 08-20-2012, 11:15 PM   #121
Jane12
Groupie
Jane12 ought to be getting tired of karma fortunes by now.Jane12 ought to be getting tired of karma fortunes by now.Jane12 ought to be getting tired of karma fortunes by now.Jane12 ought to be getting tired of karma fortunes by now.Jane12 ought to be getting tired of karma fortunes by now.Jane12 ought to be getting tired of karma fortunes by now.Jane12 ought to be getting tired of karma fortunes by now.Jane12 ought to be getting tired of karma fortunes by now.Jane12 ought to be getting tired of karma fortunes by now.Jane12 ought to be getting tired of karma fortunes by now.Jane12 ought to be getting tired of karma fortunes by now.
 
Posts: 171
Karma: 1706300
Join Date: Oct 2010
Device: iDevices
Quote:
Originally Posted by jackie_w View Post
I just tried this. It works very well

Create a /css directory in the root of int.mem and place my.css file (containing all the @font-faces etc) in there. Then insert your suggestion of the single line
Code:
@import url(res:///ebook/fonts/../../mnt/sdcard/css/my.css);
at the top of each epub css file then all customised font-family, font-size, line-height etc seems to display just fine.
Quote:
Originally Posted by snarkophilus View Post
The next thing I'm wondering if how hard it would be to automate adding that @import to every epub in my Calibre library. Some epubs have multiple CSS files, so you can't just blindly add the @import to every CSS you see.
Hello,

Did you guys ever figure out a way to add the @import line via Calibre? (I found Simon's query in the Calibre forum, but it didn't seem to have resulted in a solution.)

I tried adding it to the "Look & Feel: Extra CSS" box, but it didn't seem to work. I'm not sure if I'm doing something wrong or if it's just not possible.

(I am asking this for a friend with a T1 who likes the idea of custom fonts but is afraid to root or install Morkl's reader app. Thus the external stylesheet solution.)

Thanks for any assistance!
Jane12 is offline   Reply With Quote