View Single Post
Old 12-12-2014, 05:12 PM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jackie_w View Post
I've found I get the best, most predictable results on all the readers I've used (Kobo, Sony, Pocketbook, Android apps) by:
  • only specify font-size in em units (% should also work)
  • if the main paragraph class contains a font-size, remove it. Also remove font-size from any other css class which shares that particular font-size value. This results in the font-size slider properly controlling normal body text
  • only ever allow font-size css in classes which are supposed to be different from the normal body text, e.g.
    - headings (font-size: 1.5em)
    - pseudo smallcaps (font-size: 0.75em)
  • I do always add font-size:1em to whatever class corresponds to the <body...> tag, to normalise all the sizes lower down the hierarchy
It works fine. Whenever I change the font-size slider everything scales in proportion.

Have you really been editing your Sony epubs in hard-coded px units, like this test epub, all these years?
I created that ePub so I can decide if I want to change the values of the font size slider in the patch. I use mostly font sizes by name i.e., small, large, x-large, etc. But when the publisher specifies a size and it's not a problem with the size, I usually leave it as is and its usually in em.

I'll give your recommendations a try. Thanks.
JSWolf is offline   Reply With Quote