Skip to content

Adding fonts after compiler initialization #412

Answered by Myriad-Dreamin
Kvnyu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, typst.ts doesn't support dynamic font loading, which is limited by typst compiler itself.

PS: There will be some resource type rfc for dynamic font loading, but the rfc is still in draft.
See Discord Topic: Resource type

A name could be a fourth kind, for instance for fonts
#set text(font: "A name")
#set text(font: resource.path("Blabla.ttf"))
This means that the default would need to be adaptable though
Because for fonts, the default should be name, not path
I guess for all resource that can have a name, it should be the default
Citation styles, too

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Kvnyu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants