View Single Post
Old 05-03-2018, 05:42 AM   #62
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 forster01 View Post
Thank you for a great patch.
I have a small problem using kepubs on my KA1. After the last line of the page text in kepub, parts of higher letters are visible from the first line of the next page. I.E. Letters like "b-l-d-t-f". and also those are cut out from the first text line on the next page. I know that that is the issue of the lineheight, but i dont know what values i should set.
Or if anyone else had that problem can you please share "patch_name = `My 24 line spacing values`" for KA1. Or should i enable some additional patch that i mistakenly forrgot.
Thank you in advance.
That is a limitation of the KePub reader, there is not much you can do other than to keep increasing the line spacing until the problem goes away. How much you have to increase varies though, depending mainly on which font you are using.

I find most of the fonts I use are okay for KePubs down to a value of about 0.9, a few I need to increase to 0.95.

There is an option in the `My 24 line spacing values` patch to remove the smalest values from the line spacing slider:
Code:
# Replacement value: the number of initial line spacing values to exclude from
# the line spacing slider; minimum 0, maximum 13. E.g. 9 will result in a
# slider with 15 positions, starting from the 10th replace_float value below.
replace_int = 659DA6, 0, 0
If you are using the default patch line spacing values and wanted to remove the values below 0.9 say, then you could change the replacement value in red above to 7, or to remove the values below 0.96 change it to 10.

Last edited by GeoffR; 05-03-2018 at 05:49 AM. Reason: 8 --> 7
GeoffR is offline   Reply With Quote