typst-lsp icon indicating copy to clipboard operation
typst-lsp copied to clipboard

[Feature Request] Settings for additional font directories

Open LuhaoLiu opened this issue 2 years ago • 2 comments

  • [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!

LuhaoLiu avatar Apr 08 '23 10:04 LuhaoLiu

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.

vallentin avatar May 11 '23 05:05 vallentin

Even this trick did not help:

"typst-lsp.serverPath": "path/to/local/typst --font-path ~/.fonts",

Nabav avatar Jun 13 '23 14:06 Nabav