Skip to content

How can I change the font used in a quarto book? #6030

Answered by mcanouil
ddotta asked this question in Q&A
Discussion options

You must be logged in to vote

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 mainfont: MyFont.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ritog
Comment options

Answer selected by ddotta
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
books html Issues with HTML and related web technology (html/css/scss/js)
3 participants