![]() |
#1 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#4 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 590
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
So the books involved all have the same font but a line spacing I would like to change. |
|
![]() |
![]() |
![]() |
#5 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 590
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
Thanks! Last edited by Phssthpok; 08-30-2025 at 12:21 PM. |
|
![]() |
![]() |
![]() |
#6 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,443
Karma: 107078855
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
|
![]() |
![]() |
![]() |
#7 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#8 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 590
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
|
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
When you open any previously opened eBooks, just set the same settings from the Aa menu and you'll be good. |
|
![]() |
![]() |
![]() |
#10 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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. |
|
![]() |
![]() |
![]() |
#11 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,443
Karma: 107078855
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
|
|
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,709
Karma: 16308824
Join Date: Sep 2022
Device: Kobo Libra 2
|
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.
|
![]() |
![]() |
![]() |
#13 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |