-
DescriptionNo matter what font I use in the monofont declaration, the font in the rendered html document is always Menlo. The only way I can affect this is to change the font-family in a This behavior did not used to exist. I'm not sure when it changed. I've tried to subtract everything but the monofont declaration from my yaml header, but it does not help. The mainfont declaration works fine when I include it. I've made sure that the font I want to use is installed on my system. I've tried both at the command line and in RStudio. I'm using quarto 1.7.31. I've tried using the same font that works in the mainfont declaration as the monofont. I've tried with and without a I'm at my wits end. Any ideas? By the way, here is a minimal example. ---
format: html
monofont: Fira Code
---
```{r}
# This chunk is just to make it possible to shrink the typeface in succeeding chunks. Mainly this will be used for the crosstabs.
def.chunk.hook <- knitr::knit_hooks$get("chunk")
knitr::knit_hooks$set(chunk = function(x, options) {
x <- def.chunk.hook(x, options)
ifelse(options$size != "normalsize", paste0("\\", options$size,"\n\n", x, "\n\n \\normalsize"), x)
})
``` |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Could you properly format your post using code blocks for code and terminal outputs? Thanks. Also please ensure your example is self-contained and includes the format(s). |
Beta Was this translation helpful? Give feedback.
-
Thanks for the report, this is a bug. |
Beta Was this translation helpful? Give feedback.
Thanks for the report, this is a bug.