You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---
brand:
typography:
fonts:
- family: Barrio
source: google
- family: Roboto
source: google
base: Roboto
headings: Barrio, Times New Roman
---
## Base font
{{< lipsum 1 >}}
## Heading is `#context text.font`{=typst}
Base is `#context text.font`{=typst}
::: {style="font-family: Barrio"}
{{< lipsum 1 >}}
:::
#show heading: set text(font: ("Barrio", "Times New Roman"))
Typst passes the first test, since caching of font resources is independent of what is used.
But it fails the second test due to not anticipating a list. 🤦
Producing
#showheading: settext(font: "Barrio, Times New Roman", )
which should be
#showheading: settext(font: ("Barrio", "Times New Roman"))
## Heading is `#context text.font`{=typst}
produces
But it's really Typst's global fallback font, Linux Libertine. 😝
Very important for multilingual text, will fix and backport.
gordonwoodhull
changed the title
typst should handle lists of fonts in typography element definitions
typst brand yaml: handle lists of fonts in typography element definitions
Jan 23, 2025
Split out from #11929
Very important for multilingual text, will fix and backport.
Originally posted by @gordonwoodhull in #11929
The text was updated successfully, but these errors were encountered: