Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-30-2025, 08:56 AM   #1
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 590
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
How to set default line spacing?

I have a lot of books without any line-height specification in the CSS. They all seem to display with a default line spacing which seems to be equivalent to "line-height:1", which is too close together for my taste. I can manually adjust the spacing for each book individually, or I could add "line-height:1.2" to each and every book, but either way this is a lot of work.

Something, somewhere must be specifying the default line spacing. How do I change it?
Phssthpok is offline   Reply With Quote
Old 08-30-2025, 09:04 AM   #2
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,701
Karma: 242197301
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
It depends on the font you use. Some fonts have narrow line-spacing, others have wider.
Sirtel is offline   Reply With Quote
Old 08-30-2025, 09:13 AM   #3
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,701
Karma: 242197301
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Also, you don't have to add line-height to each book separately. You can use the Modify Epub plugin to add extra css to books in bulk.

I think you can also edit the Kobo configuration file, specifically Reading settings.
Sirtel is offline   Reply With Quote
Old 08-30-2025, 12:15 PM   #4
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 590
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by Sirtel View Post
It depends on the font you use. Some fonts have narrow line-spacing, others have wider.
I have set up Bookerly as the default font, as it was Georgia before (which is missing many glyphs, as well as looking unpleasant. I can't remember how I did it, though...).

So the books involved all have the same font but a line spacing I would like to change.
Phssthpok is offline   Reply With Quote
Old 08-30-2025, 12:15 PM   #5
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 590
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by Sirtel View Post
I think you can also edit the Kobo configuration file, specifically Reading settings.
Ah, that's where I set the font (readingFontFamily=Bookerly). It has "readingLineHeight=1.35". I'll try increasing it to see what happens.

Thanks!

Last edited by Phssthpok; 08-30-2025 at 12:21 PM.
Phssthpok is offline   Reply With Quote
Old 08-30-2025, 02:25 PM   #6
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,443
Karma: 107078855
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by Phssthpok View Post
Ah, that's where I set the font (readingFontFamily=Bookerly). It has "readingLineHeight=1.35". I'll try increasing it to see what happens.

Thanks!
Omitting it might work better.
Quoth is offline   Reply With Quote
Old 08-30-2025, 03:38 PM   #7
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 590
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Investigating further, one of the books with this problem has a base font size of 1.29167em, which is then rescaled in each paragraph style to 0.77419em. 0.77419 x 1.35 is 1.045em, which looks like the line spacing I end up with. A lot of books seem to do this -- I've never understood why.
Phssthpok is offline   Reply With Quote
Old 08-30-2025, 03:39 PM   #8
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 590
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by Quoth View Post
Omitting it might work better.
Thanks, I'll try that too.
Phssthpok is offline   Reply With Quote
Old 08-30-2025, 04:39 PM   #9
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: 80,071
Karma: 147983159
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 Phssthpok View Post
I have a lot of books without any line-height specification in the CSS. They all seem to display with a default line spacing which seems to be equivalent to "line-height:1", which is too close together for my taste. I can manually adjust the spacing for each book individually, or I could add "line-height:1.2" to each and every book, but either way this is a lot of work.

Something, somewhere must be specifying the default line spacing. How do I change it?
Here is what you do. Take a book you've not opened and open it. Then set the font, font size, font weight, margins, and line height. Then that will become the default for any new books.

When you open any previously opened eBooks, just set the same settings from the Aa menu and you'll be good.
JSWolf is offline   Reply With Quote
Old 08-30-2025, 04:41 PM   #10
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: 80,071
Karma: 147983159
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 Phssthpok View Post
Investigating further, one of the books with this problem has a base font size of 1.29167em, which is then rescaled in each paragraph style to 0.77419em. 0.77419 x 1.35 is 1.045em, which looks like the line spacing I end up with. A lot of books seem to do this -- I've never understood why.
For any books that have the font size set at a different size to 1em be it larger or smaller, you'll have to go in and edit them to fix it.

Books with no font size for the body font will default to 1em and your font size setting will be as you want it to be.
JSWolf is offline   Reply With Quote
Old 08-30-2025, 05:01 PM   #11
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,443
Karma: 107078855
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by Phssthpok View Post
Investigating further, one of the books with this problem has a base font size of 1.29167em, which is then rescaled in each paragraph style to 0.77419em. 0.77419 x 1.35 is 1.045em, which looks like the line spacing I end up with. A lot of books seem to do this -- I've never understood why.
Stupidity.
Quoth is offline   Reply With Quote
Old 08-30-2025, 05:37 PM   #12
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,709
Karma: 16308824
Join Date: Sep 2022
Device: Kobo Libra 2
Quote:
Originally Posted by Phssthpok View Post
Investigating further, one of the books with this problem has a base font size of 1.29167em, which is then rescaled in each paragraph style to 0.77419em. 0.77419 x 1.35 is 1.045em, which looks like the line spacing I end up with.
Unfortunately, the only options for books like this are to either edit every book you buy to delete such nonsense or to edit the font settings to compensate when you first open a book. I believe you can also use KOReader to override book CSS and force your own rules onto every book you read, but since I've never used KOReader myself, I don't know how effective the overrides are.
Aleron Ives is offline   Reply With Quote
Old 08-30-2025, 11:23 PM   #13
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: 80,071
Karma: 147983159
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 Aleron Ives View Post
Unfortunately, the only options for books like this are to either edit every book you buy to delete such nonsense or to edit the font settings to compensate when you first open a book. I believe you can also use KOReader to override book CSS and force your own rules onto every book you read, but since I've never used KOReader myself, I don't know how effective the overrides are.
That is not a solution at all. The only solution is you edit every eBook to check the CSS for stupid stuff and fix it.
JSWolf is offline   Reply With Quote
Old 08-31-2025, 07:15 AM   #14
John F
Grand Sorcerer
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 7,964
Karma: 71261339
Join Date: Feb 2009
Device: Kobo Clara 2E
FWIW, I use calibre to do conversions (including epub to epub), and don't seem to have a problem with varying line heights between books.
John F is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Paragraph Spacing as Default? PiperKev KOReader 3 03-02-2025 10:30 AM
Clara HD Default font size, line spacing and margins hobbit87 Kobo Reader 15 01-25-2022 05:45 PM
CSS line height vs Kobo line spacing slider? bongoman Kobo Reader 2 07-12-2020 01:25 PM
PRS-T3 Default line spacing and fonts? Amalthia Sony Reader 2 01-16-2014 01:58 PM
Default Nook Fonts & Line Spacing buffalobuffalo Workshop 1 07-06-2012 03:54 PM


All times are GMT -4. The time now is 09:28 AM.


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