Quote:
Originally Posted by Nick_1964
Then it must be something as font because with the test epub it is drawn completely to the bottom.. but how to figure out.. there are no margins,I use all kind of extra settings with the !important flag and the epub patch for bottom and top patches..
|
It is simply that the gap is not big enough for another line of text with your current font, font size, and line spacing settings. From your screenshots I measure that your line height is 44px, but the gap at the bottom is only 38px.
(Edit actually 34px, see below.)
You either need to make the footer 6 pixels
(Edit actually 10px, see below) smaller (which means reducing the font size used in the footer), or change the font size and line spacing settings of the text (which might mean more or fewer lines on the page), or add a few pixels to the @page top margin, which will shift all the text down the page by a few pixels. (Edit: e.g. if you made the @page top margin 11px then the gap at the top of the page would increase from 15px to 26px, and the gap at the bottom would reduce from 38px to 27px.)
Edit: Here is a way of thinking about it that might be simpler, as you don't need to measure anything from screenshots:
Your total screen height is 1448px. There is a built-in top margin of 15px that we can do nothing about (except switch to full-screen mode), and you have set your footer to a height of 35px, which leaves a usable screen height of 1448-15-35 = 1398px.
Your choice of font, font size and line spacing results in a total line height of 44px, so you can fit 1398\44 = 31 lines on the screen leaving a gap of 1398-31*44 = 34px.
(I measured 38px from the screenshot, but some fonts include white space at top or bottom so it is hard to tell where to measure from, this method should be more accurate.)
So to get another line of text at your currentsettings you would need to reduce your footer height by 10px to 25px. (or 24px, to allow for possible rounding in how the margins are calculated.)
Or, you could increase either line spacing or font size so that your line height was 45px, and that would still give you 31 lines of text, but with a much smaller gap at the bottom: 1398-31*45 = 3px. (You will need to apply the `Custom font sizes` patch to allow a 1px adjustment at that size.)
If you keep the footer height at 35px and adjust your font size and/or line spacing to change the line height (currently 44), then this table shows the number of lines of text that will fit on a page, and the size of the bottom gap (in pixels.):
Code:
Line height 40 41 42 43 44 45 46 47 48
--------------------------------------------------------
Lines/page 34 34 33 32 31 31 30 29 29
Bottom gap 38 04 12 22 34 03 18 35 06