-
DescriptionHi, In my book I'd like to use a special font to display the polars code correctly. Ideally I'd like to store the font ttf file in my github repository (for example in a font subdirectory) and then make a link. I've tried this but quarto doesn't seem to like it: format:
html:
theme:
light: cosmo
code-fold: false
css: custom.css
mainfont: font/Cascadia.ttf # <- here's the problem |
Beta Was this translation helpful? Give feedback.
Answered by
mcanouil
Jun 26, 2023
Replies: 2 comments 1 reply
-
You need to import it in your (S)CSS file: @font-face {
font-family: "MyFont";
src: url("path/to/font.ttf");
} Then you can use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ddotta
-
Thanks @mcanouil your solution works perfectly! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to import it in your (S)CSS file:
Then you can use
mainfont: MyFont
.