![]() |
#1 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jun 2015
Device: Kobo Aura HD
|
Homogeneous fonts in viewer
Hi Everyone,
How can I achieve a homogeneous font size, type, boldness, in all the books which I open wih Viewer? I tried to convert them with embedded font and also tried to add font in Editor, but all the books have different font size and/or font type or sometimes some paragraph are bold in a book. I tried to make the bold and undo it. I even exported in docx and set to bold and undo it in Libreoffice Writer. |
![]() |
![]() |
![]() |
#2 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
If you don't mind "destroying" the font sizes for things like the copyright page, table of contents, etc. you can open the .css file(s) and remove all font-size: lines with a regular expression. For novels the only part of the book that matters to me is the chapters; there aren't any footnotes or figure captions or whatnot that should be a different size.
You can also preprocess the book by using calibre's convert book thing and convert it to the same format, and set up the conversion parameters for something you like. Even though it says it will normalize the font size (I use 1em) there are still places where it leaves the original, or something. After I do that then I remove the font-size: lines. I'm using a Kobo so almost all of my books start out in Kindle format and I use calibre to convert them to epub. Doing this conversion is also required for the really brain dead formatting where they've embedded style= lines in the html; calibre will move all of that into the .css file. Last edited by hobnail; 12-11-2022 at 03:22 PM. |
![]() |
![]() |
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,478
Karma: 239219543
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 | |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Quote:
I had been fixing them individually but I had to reinstall Windows recently and decided to try just removing the font-size: lines and it works. |
|
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,478
Karma: 239219543
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#6 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
These are novels. Except for the chapter title the vast majority of novels have little to no font size changes.
|
![]() |
![]() |
![]() |
#7 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I agree with Hobnail, BUT do not assume there wasn't a reason and just nuke'em. OSFA is a myth.
Lots of valid reasons an author might style body text. Signs, Shouting, Location (Time & Place). Look first. If in doubt Comment out instead of nuke ![]() /*font-size: 1.2em; */ |
![]() |
![]() |
![]() |
#8 | |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,478
Karma: 239219543
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
![]() |
![]() |
![]() |
#10 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Since novels don't use much if any styling they turn out looking fine. The ereader's (kobo) built in css does a good job. The two built in things I want overridden, text-align:justified and a blank line between paragraphs, is fixed by calibre during the conversion.
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,478
Karma: 239219543
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
![]() |
![]() |
![]() |
#12 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
I'm typically downloading well over 7 free books a week by way of ereaderiq.com so I'm very glad to have reduced the time I spend fixing their formatting. So far the only thing that's "lost in translation" is the chapter titles when they use p tags; 1em font size that's the same as the running text, but it's easy to see it's the chapter title with the other formatting for it. I've even been reading some LitRPG books and their formatting for the RPG stuff comes out perfectly fine; a combination of bold, italic bold, and italic.
The page on the right is the original AZW3. This is with calibre's viewer, but no different than on my kobo. Last edited by hobnail; 12-13-2022 at 02:45 PM. |
![]() |
![]() |
![]() |
#13 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,478
Karma: 239219543
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
Of course not every book suffers from the sledgehammer removal of font sizes and margins, but many of those I've read would. Letters, diary entries, computer text, chapter quotes, songs, verses, section breaks and so on. And yes, chapter titles. All this is important for me to be able to enjoy a book. Last edited by Sirtel; 12-13-2022 at 03:01 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Viewer default fonts? | Diver4242 | Library Management | 2 | 02-22-2018 09:44 PM |
Portable Calibre Viewer and custom fonts | Dfaure | Calibre | 4 | 11-02-2017 05:28 AM |
Non homogeneous light: a possible cause | Ruskie_it | Kindle Developer's Corner | 4 | 07-15-2016 01:17 PM |
Viewer Fonts | BetterRed | Calibre | 3 | 01-01-2014 02:29 PM |
Fonts not respected in Viewer | mistersquid | Calibre | 3 | 04-18-2010 11:10 PM |