Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Unify font sizes' patch refinements #99

Merged
merged 1 commit into from Nov 5, 2021
Merged

Conversation

shermp
Copy link
Collaborator

@shermp shermp commented Nov 3, 2021

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.

This makes the final result even closer to kepub, if not identical
@pgaskin pgaskin added the patches Category: Relates to the patches. label Nov 4, 2021
@pgaskin pgaskin merged commit abede4b into master Nov 5, 2021
@pgaskin pgaskin deleted the shermp/unify-font-v2 branch November 5, 2021 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patches Category: Relates to the patches.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants