View Single Post
Old 10-07-2014, 02:35 AM   #43
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 Ryzir View Post
I've tried multiple books and dozens of pages and there is always room for at least one more line of text and most pages have room for two.
Perhaps the book has the bottom margin set in CSS with @page, or in the .xpgt file? If so then this margin will be added to the space between the footer and the bottom of the text.

You could try using a negative value for margin-top in the patch, but since different publishers use different sized margins the best thing is to delete any .xpgt file in the book and replace the publisher's @page margins with your own. The Modify Epub plugin can do both of these things easily.

Edit: The other cause of extra blank lines could be the orphans/widows settings in the book. You can enable the `fix page breaks bug` patch to prevent orphans/widows processing for all books, or edit each book to set orphans:1;widows:1; in the CSS (or replace the publisher's settings, if any). The KoboTouch driver in calibre can be set up to do this automatically as the books are sent to the device.

Edit2: The other thing to check is whether you are using the "Document Default" font setting. If so then the font used for the footer will be Gothic, which sits very low on the line and gives the effect of extra padding above the line. Try selecting a font such as Georgia or Avenir instead of Document Default and see if that makes a difference. (You can also force a different font to be used in the footer even when Document Default is selected by uncommenting one of the font-family lines in the footer patch).

Last edited by GeoffR; 10-07-2014 at 10:55 AM. Reason: note about Document Default font using Gothic for footer
GeoffR is offline   Reply With Quote