How to use google fonts in Bookdown

bookdown

#1

How to use google fonts in the bookdown books. Please tell me


#2

Check out this bookdown::gitbook project from Bob Rudis on his github: https://github.com/hrbrmstr/21-recipes

In brief, two steps:

  1. Use a custom .css that imports and sets up the fonts like style.css
  2. Specify your .css in the _output.yml file
    bookdown::gitbook:
      css: style.css
    

Alternatively, check out this addin, which you can download from GitHub.