![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
Removing the font size info from EPUB
I have a number of EPUB books, each of them happens to have a different font size encoded. How to unify it so that the reader decides on which font size to use?
|
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,925
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
A bit of a sledge hammer approach as it will get All font-size usage Personally, I use the editor and decide as I go as to which get tweaked ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
Do you mean the "Filter Style Information" section when I choose the Convert option? I pick the "Fonts" box but that does not work.
Last edited by Buhaj47; 01-04-2015 at 02:40 PM. |
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,925
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
That box remove FONTS (hover for the Tool tip) Use the Filter Style Properties box to enter what you want removed. Use CARE. Keep a backup copy |
|
![]() |
![]() |
![]() |
#5 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,646
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
Will it just unify the main body font-size of the books or rather make all the text (e.g. chapter titles) the same?
|
![]() |
![]() |
![]() |
#7 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,646
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#8 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
1. Make sure all the font-size parameters are specified in resizable units, i.e. em, %, small/medium/large, rather than absolute units such as px, pt, etc. 2. Avoid use of the font shorthand property; e.g. replace "font: 12pt Times" with individual properties "font-size: 1em; font-family: Times;" I haven't looked in to how to do this automatically though, the number of books I have found with these sorts of problems is quite small so I just edit the stylesheet manually. |
|
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,300
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
So manually deleting font-size directives is the best way to go about it. If you delete them all, then you could end up with things the wrong size. |
|
![]() |
![]() |
![]() |
#10 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
Thanks guys - however, I think I'm gonna give it a break and just focus on reading the books. I've opened some EPUB and KEPUB books in the editor, and can't find the information relating to the font size. The thing is all the EPUB's (I use for novels) I have have similar font size, the KEPUB's (historical books with footnotes and pictures) are much smaller. Think I could add the values GeoffR mentioned, but never really studied HTML code.
![]() @GeoffR - unless could you show me a sample of how you add specific info on the font size the books should use, e.g. small/medium size for main body? If that's an issue though, don't bother, thanks anyway. EDIT: I have opened an EPUB in the editor once more, and, correct me if I'm wrong, the main font used in the novel is defined by the parameters in calibre1 which are here. Does it mean it will suffice to add the information on the font size here, e.g. font-size: small? If I use zero value, will the reader apply its default settings (if such exist)? Last edited by Buhaj47; 01-05-2015 at 01:03 PM. Reason: images added |
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,300
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
For the main body font, you don't need to add a font size to it. No font size means it will be the default font size and you can then easily change the font size using the font size slider.
|
![]() |
![]() |
![]() |
#12 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
I see, but what the font size shown on the screen depend on then, i.e. there must be a reason the books are rendered differently? Is this because they are in different formats, i.e. EPUB and KEPUB?
|
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,300
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Sometimes a font size is specified in the CSS for the body font. Usually a small font size is used. So that does make a difference. I strip font sizes in the body text out as I don't need or want them.
|
![]() |
![]() |
![]() |
#14 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Kepubs and epubs are read using different software, and so there will be some differences when you change from epub to kepub even if the book itself is identical. I believe the base kepub font size is a bit larger than for epubs, as kepub base margins are larger. I usually have to decrease the font size slider a few notches and reduce the margin slider one notch when I finish reading an epub and open a new kepub, but it also depends on the sizes set in the book. If the device's font size adjustment slider is working, but you want all books to have the same base font size so you can avoid adjusting the font size on the device, then that can be done by rescaling all the font sizes in the book's stylesheet, but I would say it is a lot more effort than it is worth, Easier just to spend a few seconds adjusting the font size when you first open the book. |
|
![]() |
![]() |
![]() |
#15 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,300
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub > Epub conversion changes font size.. why? | OllieDixon | Conversion | 2 | 03-31-2014 02:30 AM |
Determine font and font size on incoming epub? | peaceridge | Calibre | 4 | 01-30-2012 03:35 PM |
Epub Font Size Question | Amalthia | Calibre | 15 | 01-03-2011 01:20 PM |
Calibre not overwriting ePub CSS font info | jswinden | Calibre | 4 | 04-06-2010 01:29 PM |
Increase font size of epub? | pennpin | PocketBook | 0 | 11-25-2009 05:41 PM |