View Single Post
Old 05-10-2015, 12:36 AM   #6
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
My 15 line spacing values

The unpatched firmware allows adjustment of the line spacing via a slider with 15 positions. However most people use only the lowest few settings, as the highest settings are far too wide to be useful. The `My 15 line spacing values` patch allows the 15 stock choices to be replaced with your own 15 custom values.

The final line spacing on the page depends on a number of factors, including choice of font face, publisher's settings in the book's stylesheet, and whether the EPUB or KEPUB reader is used (see the `ePub unitless line height` patch to fix a problem affecting line spacing in the EPUB reader's stylesheet.)

My understanding is that the line spacing value set by the slider is a scale factor by which the device multiplies the base line height. The scale factors used by the unpatched firmware range from 1.0 - 3.0. The default values in the patch change this range to 0.7 - 1.1, but you can choose any custom range you want.

The screenshots below (Glo, 3.15.0) show 5 out of the 15 line spacing settings with a sideloaded epub using the Amasis font. From left to right, line spacing values are: 0.7, 0.8, 0.9, 1.0 (unpatched minimum), 1.1:

Click image for larger version

Name:	spacing-07.png
Views:	4978
Size:	86.6 KB
ID:	138132Click image for larger version

Name:	spacing-08.png
Views:	4398
Size:	80.7 KB
ID:	138133Click image for larger version

Name:	spacing-09.png
Views:	4076
Size:	71.6 KB
ID:	138134Click image for larger version

Name:	spacing-10.png
Views:	3968
Size:	66.0 KB
ID:	138135Click image for larger version

Name:	spacing-11.png
Views:	3989
Size:	63.5 KB
ID:	138136

And if you are wondering why anyone would need a line spacing value as small as 0.7, it is because some fonts come with an extremely large base line height: the screenshots below (Glo, 3.15.0) show an EPUB with the Kobo Nickel font selected, line spacing values of 0.7 (default patch minimum) and 1.0 (unpatched minimum):

Click image for larger version

Name:	kobo-nickel-07.png
Views:	4586
Size:	110.0 KB
ID:	138141Click image for larger version

Name:	kobo-nickel-10.png
Views:	4563
Size:	80.8 KB
ID:	138142

Beware that the KEPUB reader has a limitation which affects the use of small line spacing values. The screenshots below (Glo 3.15.0) show pages of an EPUB and a KEPUB respectively, using a line spacing value of 0.8. Note the dots at the bottom of the KEPUB page: these are the ascenders of the top line of text from the following page. How narrow you can make the KEPUB line spacing before this problem shows up depends on which font face is used. There is currently no fix for this problem, other than increasing the line spacing or switching to the EPUB reader.
Attached Thumbnails
Click image for larger version

Name:	epub-08.png
Views:	3873
Size:	77.6 KB
ID:	138137   Click image for larger version

Name:	kepub-08.png
Views:	3960
Size:	99.3 KB
ID:	138138  

Last edited by GeoffR; 05-10-2015 at 06:57 AM. Reason: And if you are wondering ...
GeoffR is offline   Reply With Quote