Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom font path with typst #7588

Merged
merged 5 commits into from
Nov 15, 2023
Merged

Support custom font path with typst #7588

merged 5 commits into from
Nov 15, 2023

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Nov 15, 2023

Closes #7585

If TYPST_FONT_PATHS is set, pass it through, otherwise our internal use of --font-path will override the value

Next step would be to support font-path yaml option probably with same rule as in typst:

  • If font-path is set, then TYPST_FONT_PATHS is ignored.

Or we could do our own rule and also append...

Other our internal use of `--font-path` will override the value
@cderv cderv self-assigned this Nov 15, 2023
@cderv
Copy link
Collaborator Author

cderv commented Nov 15, 2023

I did add support for something like

format: 
  typst:
      mainfont: "Agbalumo"
      font-paths: myfonts

where Agbalumo font lives locally in myfonts folder

@cderv cderv requested a review from cscheid November 15, 2023 12:52
Copy link
Collaborator

@cscheid cscheid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thank you!

@cderv
Copy link
Collaborator Author

cderv commented Nov 15, 2023

Ok great; i'll add to the typst doc and then merge.

cderv added a commit to quarto-dev/quarto-web that referenced this pull request Nov 15, 2023
@cderv cderv merged commit 0837bb6 into main Nov 15, 2023
@cderv cderv deleted the typst/custom-fonts branch November 15, 2023 17:11
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.

Support setting custom fonts with typst
2 participants