Quote:
Originally Posted by GeoffR
No problem, that is expected. The reason there isn't a problem without the patch is that without the patch the minimum line spacing is 1.0.
If you read epubs then you can use any line spacing value without a problem, but if you only read kepubs then you might want to change the replacement values in the patch to avoid the smaller ones that cause problems for the kepub reader. Which minimum value to choose will depend a bit on the font you use.
For example if you use the Kobo Nickel font, which has an extremely wide line spacing, then you might use a value of 0.75 without problem. If you use Georgia then you might have problems with values smaller than 0.85.
Here is a set of more conservative replacement values that should avoid problems with most fonts in kepubs:
Code:
# 15 values for replacement:
replace_float = 604A48, 1.0, 0.9
replace_float = 604B10, 1.05, 0.92
replace_float = 604B18, 1.07, 0.94
replace_float = 604B20, 1.1, 0.96
replace_float = 604A50, 1.2, 0.98
replace_float = 604B28, 1.35, 1.0
replace_float = 604A58, 1.5, 1.05
replace_float = 604B30, 1.7, 1.1
replace_float = 604B38, 1.8, 1.15
replace_float = 604A60, 2.0, 1.2
replace_float = 604B40, 2.2, 1.25
replace_float = 604B48, 2.4, 1.3
replace_float = 604B50, 2.6, 1.35
replace_float = 604B58, 2.8, 1.4
replace_float = 604A68, 3.0, 1.5
|
It's working ! Thanks a lot for your help.