typst-lsp
typst-lsp copied to clipboard
[Feature Request] Settings for additional font directories
- [x] I have searched the issues of this repo and believe that this is not a duplicate.
- [x] I have searched the discussions and believe that my question is not already covered.
Feature Request
Could we have a new setting for additional font directories? Just like the --font-path option in typst. It would be useful when using fonts that are not embedded.
Also some dependent settings like whether to search recursively.
Thanks for your contributions! I am enjoying using this extension!
I was looking for this feature as well. As I have "fonts" dir in my project. To work around this, I'm currently doing the following:
typst --font-path fonts watch doc.typ
Though it causes a double compilation if using a PDF preview.
Even this trick did not help:
"typst-lsp.serverPath": "path/to/local/typst --font-path ~/.fonts",