View Single Post
Old 01-21-2014, 12:13 AM   #7
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by digital punk View Post
Hmm, I would have thought the text size effectively altered the line height automatically?
It should, but in practice what happens when there are no line-height properies at all is that as you reduce the line spacing with the adjustment slider, the spacing between lines with a larger font size is reduced proportionately more than those with a small font size. This means that if you get the spacing you want for the main text, larger text will be too close and smaller text too wide.

The ideal way to fix the book is to remove line-height property (or replace it with line-height:inherit) only for the main text, and to leave (or add) the line-height property on titles, headings, and other special formatting such as drop caps, superscripts, etc.


Edit: I should add that there is a patch for the Kobo firmware that will cause it to do the same thing you propose doing with Cailbre, i.e. stripping line-height and font-family properties, but without needing to modify the book. However it suffers the same problems as the Calibre method: there will be some books where it is important to have the line-height and font-family properties left intact.

Last edited by GeoffR; 01-21-2014 at 12:31 AM. Reason: note about patch
GeoffR is offline   Reply With Quote