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

Measure font size #86

Open
nonprofittechy opened this issue Feb 1, 2023 · 2 comments
Open

Measure font size #86

nonprofittechy opened this issue Feb 1, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@nonprofittechy
Copy link
Member

Use of a font size smaller than 10 points should lose a form points. Using a font size larger than 14 points should be flagged as well.

@nonprofittechy nonprofittechy added the enhancement New feature or request label Feb 1, 2023
@nonprofittechy
Copy link
Member Author

nonprofittechy commented Feb 1, 2023

Note that average populations can read printed text at 10 points at 184 wpm, so it's likely not too small. https://iovs.arvojournals.org/article.aspx?articleid=2166061

@BryceStevenWilley
Copy link
Contributor

Potential starting point:

  • do the same hook into PDF miner to get the text boxes, and then calculate how much of the page that particular text box covers on the page. The output would be a dict of font sizes (and font face name), each associated with a percentage of the page.

Should be between 9 and 18pt for the body of the text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants