Skip to content

Fixed fit_to_width: max_iter was ignored #562

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

Merged
merged 2 commits into from
Aug 20, 2023

Conversation

pteridin
Copy link
Contributor

fit_to_width was previously a loop that ignored the parameter max_iter. That lead to infinite looping and refitting the table.

Also, on the first glance: The function seems to allow negative values in font-size. Should that be fixed as well?

@davidgohel
Copy link
Owner

Good catch, thank you! Thanks also about the possible negative font size, don't worry, I will add a warning/return if that happens.

@davidgohel davidgohel merged commit 8d6b84d into davidgohel:master Aug 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants