View Single Post
Old 05-13-2011, 10:06 PM   #29
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,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by cybmole View Post
does line -height also default to 1em?

i oftern see 1.2 em in CSS but have not messed with that to date
I don't believe so, I have a feeling it needs to be set differently for each different font face. I also assumed "normal" line-height would be 1em but when I created an epub with the Charis font and explicitly set line-height to 1em it looked horribly squashed. It worked best for me if I completely removed the line-height attribute. If I remember correctly, with Charis, it seemed like removing it was probably equivalent to having explicitly set it at 1.15em. A lot of retail epubs, which embed Charis, use the 1.2em setting you mentioned. I suppose what looks "correct" is very subjective though because 1.2em looks too wide to me.

Quote:
Originally Posted by cybmole View Post
I also see font sizes with about 6 decimal places - suspect that is a side effect of conversions from word or from PDF
e.g.
font-size: 1.29167em; font-size: 1.41667em;
This usually means it's been converted by Calibre. Font sizing is a bit complex in Calibre but all its font scaling seems to use pts as input and ems as output. If your source is 12pt and you convert in Calibre with base font-size set to 12pt then you end up with an epub whose main body text has font-size 1em. Thus 1.29167em is 15.5pt and 1.41667em is 17pt. This probably means 15.5pt and 17pt formed part of the Calibre Convert - Look&Feel - Font-size key string when the epub was created.

I've probably made that clear as mud
jackie_w is offline   Reply With Quote