Skip to content

Cannot change font in pdf #1202

Answered by cderv
arnaudgallou asked this question in Q&A
Jun 23, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

What is the error you get in the log ?

This works on my system (windows 11 with TeX Live)

---
format: 
  pdf:
    mainfont: Roboto
---

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla convallis libero ante. Maecenas ac nisi consequat purus lobortis mattis quis sit amet magna. Vivamus ornare tincidunt arcu vel ultrices. Pellentesque vel faucibus sapien. Aenean vulputate laoreet ultrices. Interdum et malesuada fames ac ante ipsum primis in faucibus. Mauris mattis sed enim feugiat bibendum. Ut viverra convallis enim id pretium. Donec dictum id augue vel ultricies.

The TeX file will contain

  \setmainfont[]{Roboto}

used with XeLaTeX the default with pdf format and Quarto

Inse…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by arnaudgallou
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