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

Fixed wrong empty line height #1594

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Fixed wrong empty line height #1594

merged 1 commit into from
Feb 21, 2024

Conversation

janiselfert
Copy link
Contributor

Negating negative descent to calculate the height of an empty line correctly.

Also renamed lineGap to emptyLineHeight to avoid confusion with semantically different lineGap as known from TrueType etc.

Inverse negative descent to calculate the height of an empty line correctly.

Also renamed lineGap to emptyLineHeight to avoid confusion with semantically different lineGap as defined in TrueType etc.
@janiselfert
Copy link
Contributor Author

The test "widgets-table" failing on page 25 makes sense with this PR. The attached illustration demonstrates the change, and how now, the output makes more sense. There should be two empty lines in the generated pdf, while clearly, with the current state, two lines would not fit within the free space. With the change, the lines would fit. (right side)

pdf_line_height

@DavBfr DavBfr merged commit 4d59ca3 into DavBfr:master Feb 21, 2024
4 of 6 checks passed
@DavBfr
Copy link
Owner

DavBfr commented Feb 21, 2024

Merged, thanks.

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