View Single Post
Old 01-04-2012, 07:44 PM   #112
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,255
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by snarkophilus View Post
I'm starting to wonder if one solution is to try to import a user CSS? Maybe something like

@import url(res:///mnt/sdcard/css/my.css);

or if that doesn't work even something like

@import url(res:///ebook/fonts/../../mnt/sdcard/css/my.css);

in each epub. Sure that means you still need to add that line to everything, but if it works then at least you don't then need to regenerate every epub if you decide you like a different font later on.
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.

Now, when you fancy a change of font(s) all you have to do is replace the my.css file with your new one in the /css directory on the T1.

Nice thinking, snarkophilus, karma to you

Last edited by jackie_w; 01-04-2012 at 08:40 PM. Reason: correct error
jackie_w is offline   Reply With Quote