Skip to content

Conversation

marie-bnl
Copy link
Contributor

In order to make some fonts available to Typst, the latter supports the TYPST_FONT_PATHS environment variable. Sure, fonts can be made available by simply adding them to the packages. However, doing so results in Typst seeing them as system fonts, so you can't really know if it mistakenly chooses a font that is installed on your computer instead. Setting them via TYPST_FONT_PATHS, in combination with running Typst with the --ignore-system-fonts flag, allows for a fully reproducible build.

@marie-bnl
Copy link
Contributor Author

Now it puts the actual package path into the example, which is unexpected

*Example:*
` [ "\/nix/store/pbcb7j89fggfmjafzplcpylvksay4v9q-roboto-2.138/share/fonts/truetype "] ] `

@domenkozar
Copy link
Member

Oh, the dollar sign should be escaped with ''

@domenkozar domenkozar merged commit e080610 into cachix:main Mar 26, 2025
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.

2 participants