07-31-2024, 06:56 AM | #1 |
Evangelist
Posts: 450
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Font size
The font size looks much smaller on the book I'm reading than all of the previous books I've read on my Kobo. The settings in koboereader.conf have not changed, just how large the words appear on screen. I have to increase the font size setting to make the words look the same size as on other books.
The book is a kepub converted by Calibre from an epub. How can I fix this? I'd rather not be changing the font settings on my Kobo for different books. I'm guessing I should be editing the book's CSS, but I don't know how to do this. |
07-31-2024, 09:41 AM | #2 |
Grand Sorcerer
Posts: 11,548
Karma: 230505502
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Two possible reasons:
1. The base font size between kepubs and epubs is different; this can be fixed with a patch 2. The smaller size is specified in the book css (a common enough occurrence); this can only be fixed by editing the css. I use the calibre editor for this, some folks use Sigil. |
07-31-2024, 11:44 AM | #3 | |
Evangelist
Posts: 450
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
2. What do I look for and change in the css? Assume I know nothing about css. Last edited by foosion; 07-31-2024 at 11:48 AM. |
|
07-31-2024, 11:54 AM | #4 |
Grand Sorcerer
Posts: 11,548
Karma: 230505502
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
After you open the book in the editor, you can see the file browser (displaying the files in the book), the code editor and the preview. Open any file with ordinary text (i.e. not the cover or the TOC etc.) and look at the paragraph class in the code editor. You should see something like <p class="indent">, <p class="para-p"> and so on, there are hundreds of variants. Sometimes it's not a p, but a div. In short, look at what code an ordinary paragraph uses. Then open the css file and look for that code there. If you see any font-size smaller than 1em under that paragraph class, delete it (the whole row - like, font-size: 0.8em or font-size: small. You can use Search & Replace to bulk delete all instances of that abnormal size from the css file. You should see the text get larger in the preview window after this. If everything seems ok, save and close the editor.
Last edited by Sirtel; 07-31-2024 at 11:57 AM. |
07-31-2024, 12:24 PM | #5 | |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
07-31-2024, 12:46 PM | #6 |
Grand Sorcerer
Posts: 11,548
Karma: 230505502
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Yes, that too, of course.
|
07-31-2024, 01:01 PM | #7 | ||
Evangelist
Posts: 450
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
Quote:
|
||
07-31-2024, 01:03 PM | #8 |
Evangelist
Posts: 450
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
|
07-31-2024, 01:10 PM | #9 | |
Grand Sorcerer
Posts: 11,548
Karma: 230505502
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
Not that I remember, no (which doesn't mean much, as my memory is obviously not all it should be ). Personally I also delete ads, excerpts from other books and other such pointless stuff before I start editing the code, but YMMV. |
|
07-31-2024, 01:15 PM | #10 | |
Evangelist
Posts: 450
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
YMMV. FWIW, I'm listening to an audiobook of Wolf Hall, which mentions that Cromwell had a fantastic memory due to memory training in Italy. Last edited by foosion; 07-31-2024 at 01:18 PM. |
|
07-31-2024, 02:01 PM | #11 | |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
And another thing I do is remove all excess HMTL files such as review blurbs, previews of other books, adverts, HMTL ToC, and other stuff I don't want. And if you do an error check (after the HTML deletes) with error checker (bug on the toolbar), you can see if any images are not being used and delete them. Also do another unused CSS delete after you delete HTML files. If this is one of those eBooks from Penguin Random House, you could drop some of the embedded fonts as they are only used to an advert that you will already have deleted. Also,, you can delete any other embedded fonts if there are any that you don't want. You will have to edit the CSS to remove the references to the fonts. If there are mebedded fonts you want to keep, you can do a font subset (again int he Tools menu). Last edited by JSWolf; 07-31-2024 at 02:06 PM. |
|
07-31-2024, 02:07 PM | #12 |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Well, deleting the HTML can also delete have images and fonts that also can be deleted which means the eBook will be smaller and take less disk space.
|
07-31-2024, 02:46 PM | #13 |
Grand Sorcerer
Posts: 11,548
Karma: 230505502
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
I edit all my ebooks anyway, before reading, so this is just a part of my workflow. But I'm aware most people don't want to spend time on such tinkering (and they're not as fussy )
Last edited by Sirtel; 07-31-2024 at 02:57 PM. |
07-31-2024, 02:52 PM | #14 | |
Grand Sorcerer
Posts: 11,548
Karma: 230505502
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
(I'm old enough that there was no Google or internet before I was in my mid-twenties, but my memory has drastically worsened since that time... I wonder why?) |
|
07-31-2024, 03:01 PM | #15 |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
One other thing, you're already in the editor checking it the font size is not too small so why not do the other things as it takes very little time to do so
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moon+ Reader your favorite font and font size? | loodio | Android Devices | 6 | 01-30-2016 07:50 PM |
Problem changing font size using font size key | Waylander | Conversion | 0 | 10-02-2013 04:30 PM |
Determine font and font size on incoming epub? | peaceridge | Calibre | 4 | 01-30-2012 04:35 PM |
PRS-300 Med font size too big, but small font size too small | eli2k | Sony Reader | 4 | 05-28-2010 10:47 AM |