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
Hoping for a more detailed description about this ENV variable, e.g. WHAT is the expected seperator when there is more than one path; Which directory level should this PATH point to, 'xxx/share/fonts/opentype/SourceCodePro-Black.otf' or 'xxx/share/fonts/opentype' or 'xxx/share/fonts' ?
I found I had the same question when trying to resolve font issues. The online documentation only mentions this env var in a brief CHANGELOG note.
It may also be a good idea to place the details of this in the output of typst fonts --help, as that's somewhere people might look should their fonts not work as expected.
I've found that running TYPST_FONT_PATHS='~/.fonts/FontBase' typst fonts allowed me to see fonts activated in FontBase, though it's worth notn that fc-list ':' family showed me all such fonts without needing to set possible environment variables.
Activity
istudyatuni commentedon Jul 24, 2023
Seems like comma is used as separator
clap::Arg::env
clap::Arg::value_delimiter
OctarineSourcerer commentedon Jul 25, 2023
It may also be a good idea to place the details of this in the output of
typst fonts --help, as that's somewhere people might look should their fonts not work as expected.I've found that running
TYPST_FONT_PATHS='~/.fonts/FontBase' typst fontsallowed me to see fonts activated in FontBase, though it's worth notn thatfc-list ':' familyshowed me all such fonts without needing to set possible environment variables.cderv commentedon Nov 15, 2023
Doesn't it suppose
value_delimiterto be used and set ? Currently it is not, so not sure it is splittypst/crates/typst-cli/src/args.rs
Lines 116 to 123 in 897447e
Maybe the env var should allow to provide several paths to search
My understanding is that it should be like this to allow that (new to rust though...)
I looked into that because I tried to use multiple path in
TYPST_FONT_PATHSbut it does not seem to work