Skip to content

Fixed font utilities to work with font sources as an (optional) array.#645

Merged
matiasbenedetto merged 2 commits intotrunkfrom
fix/font-src-array
May 30, 2024
Merged

Fixed font utilities to work with font sources as an (optional) array.#645
matiasbenedetto merged 2 commits intotrunkfrom
fix/font-src-array

Conversation

@pbking
Copy link
Copy Markdown
Contributor

@pbking pbking commented May 22, 2024

When saving theme.json the src of font faces CAN be an array.

This change always writes that value as an array and can now operate on theme.json configurations that use arrays OR strings.

Fixes #599

@pbking pbking force-pushed the fix/font-src-array branch from 40ada68 to 403c547 Compare May 28, 2024 12:03
Copy link
Copy Markdown
Contributor

@matiasbenedetto matiasbenedetto left a comment

Choose a reason for hiding this comment

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

This is working OK. I found a bug while testing this PR: #656. As it is somewhat related but isn't caused by this PR, I'm approving it.

@matiasbenedetto matiasbenedetto merged commit 485f893 into trunk May 30, 2024
@matiasbenedetto matiasbenedetto deleted the fix/font-src-array branch May 30, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Critical error when removing fonts added using old naming convention in theme.json

2 participants