View Single Post
Old 01-06-2020, 02:48 PM   #1
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,590
Karma: 14328510
Join Date: Nov 2019
Device: none
easiest way to normalize font size when converting

When I buy a book I always "fix" the css so that the font size for the running/body text is 1em. After deleting any css for the body tag, at the end of the css files I add one for body that has font-size:100%;line-height:1.2;width:auto; and set the margins, padding, and border to 0. Then I delete any font-size settings in the body text p tags; if it's not 1em then I find other occurrences (with the same size) and delete them. That pretty much does the job although the headings and whatnot may be the wrong size but I can live with that.

In calibre's conversion settings for Look & Feel I have Disable font size rescaling unchecked and Base font size at 0.0pt. For Output profile I've selected Tablet.

A recent book I bought had the font-size set to some value larger than 1em for the body tag, then in the p tags used something less than 1em, probably bringing it back to something close to 1em. With my above settings the resulting AZW3 -> EPUB conversion produced css with font-size numbers that were above and below 1.0, but less than 2.0. I followed my usual recipe outlined in the first paragraph but it still wasn't right in the Kobo Forma. So then I checked the Disable font size rescaling in the conversion settings and converted it and followed my recipe and it came out correctly.

What's the best way to normalize the font size to 1em? Maybe I should be setting the Base font size to 12 or something? I have no idea what 1em would be in points for the Forma.
hobnail is offline   Reply With Quote