Skip to content

Commit

Permalink
Ensure that all parts of flextable tables use Cambria font
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRegular committed Jun 10, 2023
1 parent 85f044d commit 431ec8f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions inst/rmarkdown/templates/SCR/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ knitr::opts_chunk$set(
dpi = 300
)
showtext::showtext_opts(dpi = knitr::opts_chunk$get()$dpi) # force showtext dpi to match chunk dpi to preserve proper font size (9 pt)
flextable::set_flextable_defaults(font.family = "Cambria") # ensure that all parts of flextable tables use Cambria font
```

```{r load-libraries, cache=FALSE}
Expand Down
1 change: 1 addition & 0 deletions inst/rmarkdown/templates/SCS/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ knitr::opts_chunk$set(
dpi = 300
)
showtext::showtext_opts(dpi = knitr::opts_chunk$get()$dpi) # force showtext dpi to match chunk dpi to preserve proper font size (9 pt)
flextable::set_flextable_defaults(font.family = "Cambria") # ensure that all parts of flextable tables use Cambria font
```

```{r load-libraries, cache=FALSE}
Expand Down
1 change: 1 addition & 0 deletions inst/rmarkdown/templates/STACFIS/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ knitr::opts_chunk$set(
dpi = 300
)
showtext::showtext_opts(dpi = knitr::opts_chunk$get()$dpi) # force showtext dpi to match chunk dpi to preserve proper font size (9 pt)
flextable::set_flextable_defaults(font.family = "Cambria") # ensure that all parts of flextable tables use Cambria font
```

```{r load-libraries, cache=FALSE}
Expand Down

0 comments on commit 431ec8f

Please sign in to comment.