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

add font width test case #17

Merged
merged 1 commit into from
Jun 8, 2020
Merged

add font width test case #17

merged 1 commit into from
Jun 8, 2020

Conversation

megri
Copy link
Contributor

@megri megri commented Mar 17, 2019

This test shows the discrepancy between measuring a font using graphics2D.getFontMetrics.stringWidth and pdFont.getStringWidth.

I decided to use only 'M's for the test case as this exacerbates the problem using the Antonio-font. Using the english alphabet shows a much smaller discrepancy, but all measurements are dependent on font, font size and letters contained in the test string.

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.

2 participants