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

Allow alternate or properly escaped quotes *within* font-family names #2386

Closed
wants to merge 0 commits into from

Conversation

virtulis
Copy link
Contributor

This fixes the issue with font names that themselves contain quotes. This appears to be legal (or at least perfectly working) in the browser implementations, and after this fix Pango renders the correct font as well.

Importantly, font names are now split into an array, trimmed of quotes, unescaped, and joined back. This may have unexpected consequences beyond existing test cases, but I haven't come up with any.

  • Have you updated CHANGELOG.md?

Copy link
Collaborator

@chearon chearon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks. Just some small suggestions.

lib/parse-font.js Outdated Show resolved Hide resolved
lib/parse-font.js Outdated Show resolved Hide resolved
@chearon
Copy link
Collaborator

chearon commented Aug 10, 2024

Oops... I squashed and moved the CHANGELOG.md item to underneath 3.0.0 since we haven't released it yet, but I accidentally reset your branch when I pushed it. Manually added the commit to master: ae1aacb

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.

None yet

2 participants