Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions inst/examples/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,22 @@ output:
css: ["my-fonts.css", "default-page", "default"]
```

To use a different font you may also need to import it with a line beginning `@import` at the beginning of your custom `.css` file.
The following contents of the same CSS file will make the resulting document use the [Comic Neue](http://comicneue.com/) font, for example:

```css
/* font location goes here:*/
@import 'https://fonts.googleapis.com/css?family=Comic+Neue';

body {
font-family: "Comic Neue";
}
```

Note that this overriding mechanism also works for other output formats in **pagedown**.

For more on setting fonts with CSS, see online documentation such as that provided by [w3schools.com](https://www.w3schools.com/css/css_font.asp)

## Print to PDF

There are three ways to print to PDF:
Expand Down