Skip to content

Instantly share code, notes, and snippets.

@gederajeg
Last active December 4, 2021 03:59
Show Gist options
  • Save gederajeg/fb1f35f88d20c05b25cea302e71016d9 to your computer and use it in GitHub Desktop.
Save gederajeg/fb1f35f88d20c05b25cea302e71016d9 to your computer and use it in GitHub Desktop.
Define font family and font size for html output of R Notebook
Put the following CSS either in a .css file or directly in the R Notebook writing area.
<style type="text/css">
body{
font-family: Georgia;
font-size: 14pt;
}
</style>
### inspiration and source
https://newbedev.com/r-markdown-changing-font-size-and-font-type-in-html-output
### URL for the list of font family in CSS
https://www.w3schools.com/cssref/css_websafe_fonts.asp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment