Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 10-19-2020, 04:37 PM   #1
AccidentallyLazy
Member
AccidentallyLazy began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Oct 2020
Device: Kindle Oasis 3
CSS to force line height/spacing?

Is there any CSS you can add to the stylesheet or when converting to force a specific/set line spacing/line height? This would over-ride the 'spacing' setting on the Kindle preferably.

Thanks.
AccidentallyLazy is offline   Reply With Quote
Old 10-19-2020, 04:43 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,814
Karma: 147879470
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by AccidentallyLazy View Post
Is there any CSS you can add to the stylesheet or when converting to force a specific/set line spacing/line height? This would over-ride the 'spacing' setting on the Kindle preferably.

Thanks.
Perchance the CSS line-height property would do what you want. See CSS line-height Property. This will depend on how the renderer interprets it and whether you can override or add to the built-in line height. Unfortunately, it will not allow negative line heights.
DNSB is offline   Reply With Quote
Old 10-19-2020, 06:26 PM   #3
AccidentallyLazy
Member
AccidentallyLazy began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Oct 2020
Device: Kindle Oasis 3
Quote:
Originally Posted by DNSB View Post
Perchance the CSS line-height property would do what you want. See CSS line-height Property. This will depend on how the renderer interprets it and whether you can override or add to the built-in line height. Unfortunately, it will not allow negative line heights.
Ah cannot go below 1.2, so i guess it's the font which has some kind of inherent taller line spacing. Thanks anyway.
AccidentallyLazy is offline   Reply With Quote
Old 10-19-2020, 06:56 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,648
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by AccidentallyLazy View Post
Ah cannot go below 1.2, so i guess it's the font which has some kind of inherent taller line spacing. Thanks anyway.
You can imitate going lower then a line height of 1.2 with ChareInk. I coded the metrics so it give a smaller line height with Kindles. Grab one of the hinted versions.

https://www.mobileread.com/forums/sh...d.php?t=184056
JSWolf is offline   Reply With Quote
Old 10-19-2020, 07:01 PM   #5
AccidentallyLazy
Member
AccidentallyLazy began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Oct 2020
Device: Kindle Oasis 3
Quote:
Originally Posted by JSWolf View Post
You can imitate going lower then a line height of 1.2 with ChareInk. I coded the metrics so it give a smaller line height with Kindles. Grab one of the hinted versions.

https://www.mobileread.com/forums/sh...d.php?t=184056
I'd rather use Capita sorry.

I did work out that it is possible to have a *larger* base line height of say 1.7 but then use the narrowest spacing option on the kindle, it then looks a lot more natural.

Problem is this will only work with AZW3 files, if I want the enhanced type of KFX it will always normalise to 1.2 to force you to use the 3 spacing settings on the kindle.

Good learning experience anyway, I may sell the Oasis and pick up a Kobo for more fine adjustment.
AccidentallyLazy is offline   Reply With Quote
Old 10-19-2020, 07:06 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,648
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by AccidentallyLazy View Post
I'd rather use Capita sorry.

I did work out that it is possible to have a *larger* base line height of say 1.7 but then use the narrowest spacing option on the kindle, it then looks a lot more natural.

Problem is this will only work with AZW3 files, if I want the enhanced type of KFX it will always normalise to 1.2 to force you to use the 3 spacing settings on the kindle.

Good learning experience anyway, I may sell the Oasis and pick up a Kobo for more fine adjustment.
I did noticed when I was trying out KFX the other day that the line height when using CareInk was higher then it should have been. It's another flaw in KFX (IMHO). The smaller line height in ChareInk does work well with KF8.
JSWolf is offline   Reply With Quote
Old 10-19-2020, 08:31 PM   #7
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by AccidentallyLazy View Post
I'd rather use Capita sorry.
That's a nice looking font. It's what's called a low contrast typeface; my favorite kind.
hobnail is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS line height vs Kobo line spacing slider? bongoman Kobo Reader 2 07-12-2020 01:25 PM
CSS Line Height RTL Only d351r3d ePub 10 06-03-2020 10:11 AM
Line height. - preferred css settings sunny1z Conversion 3 01-28-2013 12:43 PM
Cannot change line height spacing for ereader pro boothy Conversion 2 05-21-2011 01:35 PM
changing text line-height in css wjcroft EPUBReader 0 12-15-2010 03:13 PM


All times are GMT -4. The time now is 02:35 AM.


MobileRead.com is a privately owned, operated and funded community.