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

Improve PDF font size detection #652

Merged
merged 3 commits into from
Apr 12, 2021

Conversation

gregorbg
Copy link
Member

@gregorbg gregorbg commented Apr 6, 2021

This is a compromise between the "M-hack" and the over-simplified computation that Alexandre proposed.
It tries to fit the text on one line, and only if it becomes too small it distributes the scramble over multiple lines.

Prior to this PR, even events like 2x2 would sometimes stretch over multiple lines.

Bonus: The heading "Extra scrambles" is now bold.

@gregorbg gregorbg requested a review from campos20 April 6, 2021 23:45
@thewca thewca locked and limited conversation to collaborators Apr 6, 2021
@thewca thewca unlocked this conversation Apr 6, 2021
@gregorbg gregorbg closed this Apr 6, 2021
@gregorbg gregorbg reopened this Apr 6, 2021
@campos20
Copy link
Member

campos20 commented Apr 8, 2021

I'll do a deep test in the weekend, please hold on.

@campos20
Copy link
Member

campos20 commented Apr 9, 2021

@gregorbg gregorbg force-pushed the fixup/general-pdf-rendering branch from 82e80cc to 221a1cd Compare April 9, 2021 10:33
@gregorbg
Copy link
Member Author

gregorbg commented Apr 9, 2021

I cannot reproduce the Jackson52021 error. Can you please specify exact steps to describe what you did?

@campos20
Copy link
Member

campos20 commented Apr 10, 2021

Well, it worked now, after failing a lot of times. It looked like ws connection was closing before generating all the scrambles.

@gregorbg gregorbg merged commit 8b1c3dd into thewca:master Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants