Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 03-19-2024, 07:28 AM   #1
moldy
Enthusiast
moldy began at the beginning.
 
Posts: 38
Karma: 10
Join Date: Oct 2015
Device: Kindle
Issue with Font Sizes in Epub - AZW3 Conversion

Modern books often contain text messages. To differentiate them from regular text I usually convert them to sans-serif font at 0.9em in the epub css.

Example:
Code:
.txt {
  font-family: sans-serif;
  font-size: 0.9em;
}
However after conversion to AZW3 the css is changed to:
Code:
.txt {
  font-family: sans-serif;
  font-size: 0.75em;
}
This arbitrary change can make the text difficult to read so I then have to edit the AZW3 to change the size back to my original setting.

I have noticed other font size changes (headings for example) but these are not as critical. Is there a way for me to keep the font sizes as I would prefer them to be?

I have not attached a file or log because this happens on every conversion so should be easy to replicate.
moldy is offline   Reply With Quote
Old 03-19-2024, 07:32 AM   #2
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: 74,015
Karma: 129333114
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 moldy View Post
Modern books often contain text messages. To differentiate them from regular text I usually convert them to sans-serif font at 0.9em in the epub css.

Example:
Code:
.txt {
  font-family: sans-serif;
  font-size: 0.9em;
}
However after conversion to AZW3 the css is changed to:
Code:
.txt {
  font-family: sans-serif;
  font-size: 0.75em;
}
This arbitrary change can make the text difficult to read so I then have to edit the AZW3 to change the size back to my original setting.

I have noticed other font size changes (headings for example) but these are not as critical. Is there a way for me to keep the font sizes as I would prefer them to be?

I have not attached a file or log because this happens on every conversion so should be easy to replicate.
Go to Preferences > Common Options and see what the settings are. You may have Font size rescaling turned on. I have it off and I have Base font set to 0.0 and nothing in Font-size key.
JSWolf is offline   Reply With Quote
Advert
Old 03-19-2024, 07:33 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
see https://manual.calibre-ebook.com/conversion.html#fonts
kovidgoyal is offline   Reply With Quote
Old 03-19-2024, 08:58 AM   #4
moldy
Enthusiast
moldy began at the beginning.
 
Posts: 38
Karma: 10
Join Date: Oct 2015
Device: Kindle
Thanks Jon and Kovid for your quick replies. I had totally the wrong idea about font size rescaling and have now turned it off. Problem solved.
moldy is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
AZW3 to EPUB Conversion issue Cougar281 Conversion 13 07-17-2021 05:18 AM
Font-sizes don't convert accurately (ePub to azw3) ElMiko Conversion 2 06-14-2021 10:43 PM
EPUB to AZW3: font sizes changed -- AGAIN! Phssthpok Conversion 17 12-24-2018 12:53 PM
EPUB to AZW3: font sizes changed Phssthpok Conversion 3 11-29-2018 11:42 AM
epub to azw3 conversion: fonts issue topquark Conversion 7 02-18-2013 06:22 AM


All times are GMT -4. The time now is 10:12 AM.


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