Skip to content

typst brand yml: handle font families as possible lists #12542

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

Merged
merged 2 commits into from
Apr 15, 2025

Conversation

gordonwoodhull
Copy link
Contributor

fixes #11933, allowing e.g.

brand:
  typography:
    headings: Barrio, Times New Roman

Everywhere we read brand.typography.*.family in typst brand yml, treat it as a possible list and use the Typst CSS font-family conversion to Typst array.

We should also consider expanding the brand yml schema to allow lists here, but commas are unambiguous in font names, as discussed in #11918 generic font families, so this is fairly safe.

@gordonwoodhull gordonwoodhull merged commit 70d973d into main Apr 15, 2025
49 checks passed
@gordonwoodhull gordonwoodhull deleted the bugfix/11933 branch April 15, 2025 13:50
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.

typst brand yaml: handle lists of fonts in typography element definitions
1 participant