View Single Post
Old 12-12-2014, 05:53 PM   #9
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,286
Karma: 16800000
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by JSWolf View Post
But one issue will be pseudo small-caps. A lot of CSS for small caps is specifying a font size of 7em or .8em. Also, I've seen a lot of CSS code that uses .8em instead of small for a font size and if I'm not mistaken, the Kobo will display these CSS styles in the same size as the body font.
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?
jackie_w is offline   Reply With Quote