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

typst brand yaml: translate named css font weights to typst #11779

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

gordonwoodhull
Copy link
Contributor

@gordonwoodhull gordonwoodhull commented Jan 3, 2025

fixes #11726

CSS has synonyms and it also uses dashes, so map and remove.

Also, we were previously failing if brand.typography.headings.weight was a string because it wouldn't be quoted. So use a raw typst inline (as with color).

This will be a backport to 1.6 and I'll add the changelog there.

from css to typst
fixes #11726

also, we were previously failing if
brand.typography.headings.weight was a string
because it wouldn't be quoted
so use a raw typst inline as with color
@gordonwoodhull gordonwoodhull changed the title typst brand yaml: translate css font weights to typst typst brand yaml: translate named css font weights to typst Jan 3, 2025
@gordonwoodhull gordonwoodhull merged commit f82973f into main Jan 3, 2025
47 checks passed
@gordonwoodhull gordonwoodhull deleted the bugfix/11726 branch January 3, 2025 18:03
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.

Font-weight name incompatibility in Typst
1 participant