Quote:
Originally Posted by JSWolf
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?