View Single Post
Old 11-09-2021, 08:05 PM   #54
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,726
Karma: 242197301
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by sherman View Post
But I might be able to do even better.

I busted out the spreadsheet, and I noticed that the results obtained from

( font_size / 1.0 ) * 6.5

were actually very close to the results from the following formula

( font_size / 15.0 ) * 96

Which made me think, that might be the actual kepub formula, since the kepub scale_factor is 15.0, and 96 would make sense as a 'default' dpi.

So, I found the equivalent formula that can be achieved using the patch

( font_size / 2.5 ) * 16.0

Here's the patch with the updated numbers:
Thank you! Works perfectly on my Sage.

And of course many thanks to other patchers as well.
Sirtel is offline   Reply With Quote