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

Font name is garbled #7

Merged
merged 2 commits into from
Feb 20, 2024
Merged

Font name is garbled #7

merged 2 commits into from
Feb 20, 2024

Conversation

secondarykey
Copy link

I think the letters will be broken if I don't change the position.

@kkoreilly
Copy link
Member

I tested this, and this seems to fix an issue where several tests fail with random characters in the middle of the font name:

truetype_test.go:232: luximr: got "L䰀u甀x砀i椀 ", want "Luxi Mono"
truetype_test.go:232: luxirr: got "L䰀u甀x砀i椀 \u2000", want "Luxi Serif"
truetype_test.go:232: luxisr: got "L䰀u甀x砀i椀 ", want "Luxi Sans"

@kkoreilly
Copy link
Member

I confirmed that this fix works and is necessary on multiple platforms (Windows and macOS). Thanks!

@kkoreilly kkoreilly merged commit 3dae860 into goki:main Feb 20, 2024
@secondarykey
Copy link
Author

I should have written a test.
Thanks for merging!

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