View Single Post
Old 03-06-2012, 08:38 PM   #6
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: 5,771
Karma: 14391668
Join Date: Sep 2009
Location: UK
Device: Kobo: H2O, GloHD, KA1, ClaraHD, Forma
@ElsieC,
Yes, but don't set your PRS+ css font-size in point units (15pt), use em units (1.25em) or percentages (125%) instead. If you use point sizes you'll find your Sony zoom button no longer has any effect. Ems and %s are scaleable -- pts (and also pixels, px, I think) are fixed.


Quote:
Originally Posted by Belfaborac View Post
Same question as ElsieC here. Could you perhaps paste in an example of a css-script jackie_w?
This is a simple one to display epub in font CharisSIL, with font-size 0.85em and line spacing of 1.2. Tweak to suit.

Code:
@font-face { font-family: serif; font-weight: normal; font-style: normal;  src: url(res:///Data/fonts/CharisSILR.ttf);}
@font-face { font-family: serif; font-weight: normal; font-style: italic;  src: url(res:///Data/fonts/CharisSILI.ttf);}
@font-face { font-family: serif; font-weight: bold; font-style: normal;  src: url(res:///Data/fonts/CharisSILB.ttf);}
@font-face { font-family: serif; font-weight: bold; font-style: italic;  src: url(res:///Data/fonts/CharisSILBI.ttf);}

body, body.calibre, body.calibre1, body.calibre2, body.calibre3, body.book  {
    font-family: serif;
    font-size: 0.85em;
    line-height: 1.2}
Caveat: Please be aware that sooner or later you will come across an epub whose own css file will stop your PRS+ css files working properly. So don't be discouraged if it happens to be the first one you try (Sod's Law ). Try a few more. The problem usually boils down to the fact that the epub internal css file also contains one or more conflicting font-family: settings. The problem epub can be fixed by manually editing its css file and removing these offending font-family settings.

Last edited by jackie_w; 03-07-2012 at 07:15 AM. Reason: typo
jackie_w is offline   Reply With Quote