Skip to content

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

Merged
gordonwoodhull merged 2 commits intomainfrom
bugfix/11933
Apr 15, 2025
Merged

typst brand yml: handle font families as possible lists#12542
gordonwoodhull merged 2 commits intomainfrom
bugfix/11933

Conversation

@gordonwoodhull
Copy link
Copy Markdown
Member

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