pgaskin / kobopatch-patches

Patches for use with kobopatch.
https://pgaskin.net/kobopatch-patches/
MIT License
212 stars 20 forks source link

'Unify font sizes' patch refinements #99

Closed shermp closed 2 years ago

shermp commented 2 years ago

This is a continuation of #98 and #96

I decided to break out the spreadsheet yesterday to play with some numbers. I discovered that the scale_factor and DPI numbers of 1.0 and 6.5 (the previous patch values) gave a very similar result to using 15.0 and 96.

My educated guess (I haven't confirmed the DPI bit) for the kepub formula is thus ( font_size / 15.0 ) * 96.

I was able to find equivalent values that can be used in the patch. They are scale_factor = 2.5 and "dpi" = 16.0.

Semwise, DNSB and @jackiew1 have all provided positive feedback on the new values over at Mobileread.