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

Fix missing glyph widths #1327

Merged
merged 2 commits into from
Jan 25, 2024
Merged

Fix missing glyph widths #1327

merged 2 commits into from
Jan 25, 2024

Conversation

pointlessone
Copy link
Member

This is an attempt to address an issue raised in #1322 (comment)

@mojavelinux
Copy link
Contributor

This fixes the original issue that I raised in #1322 (comment). However, I'm detecting one other failure in the Asciidoctor PDF test suite that is coming from changes in Prawn. I don't yet understand the failure. I'll report back once I do.

@mojavelinux
Copy link
Contributor

mojavelinux commented Jan 23, 2024

Ha! The test is failing because Prawn is fixed. It was previously truncating Unicode characters outside of the 4-digit range (e.g., U+0f089a would become U+f089). Now the code does what it's supposed to do (preserves the original char code) and I just need to update the assumption in the test. False alarm.

With that out of the way, I can confirm that this fix addressed the compatibility issues.

@pointlessone
Copy link
Member Author

Good to hear. Thank you. I will land this soon.

@pointlessone pointlessone force-pushed the fix-missing-glyph-widths branch 2 times, most recently from 927dcf6 to 7d43e7d Compare January 25, 2024 16:09
mojavelinux and others added 2 commits January 25, 2024 18:17
Prawn correctly used width of missing glyphs to layout text but didn't
encode the widths correctly in subset fonts. The resulted in characters
with missing glyphs to have 0 width. And even though Prawn drawn
Replacement Character glyphs they were stacking on top of each other
because their widths were wrong.
@pointlessone pointlessone merged commit 7cf096d into master Jan 25, 2024
26 of 30 checks passed
@pointlessone pointlessone deleted the fix-missing-glyph-widths branch January 25, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants