View Single Post
Old 04-01-2021, 06:15 AM   #1
maraskan_user
Member
maraskan_user began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Dec 2020
Location: Germany
Device: Boox Nova 3, Galaxy Tab S6, Samsung M21
Canceling-out font size definitions in many epubs

I noticed that there are many epubs which show a pattern similar to this:

1. They specify a font size in their <html> element:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" style="font-size:1.136rem;">
2. but then go and exactly cancel it out by using an inverse value like "font-size: 88%" either in their body definition or in virtually every single css-class.

I mean... why?
And it's clear from the values that they are supposed to cancel out. But why do this, instead of leaving these things out and only specify sizes for classes that actually deviate from the default font size?

Also, when I say cancel out, they do so in Calibre. KOreader seems to not react to the font-size definition in the html element which leads to wildly varying main font sizes for different books which use this cancel-out strategy...
maraskan_user is offline   Reply With Quote