| # Color Scales ------------------------------------------------------------ | # Color Scales ------------------------------------------------------------ | ||||
| #' Xaringan Themer ggplot2 Scales | |||||
| #' Themed ggplot2 Scales | |||||
| #' | #' | ||||
| #' @description | #' @description | ||||
| #' | #' |
| #' `.remark-slide-content` class. | #' `.remark-slide-content` class. | ||||
| #' @param background_size Background image size, requires `background_image` to | #' @param background_size Background image size, requires `background_image` to | ||||
| #' be set. If `background_image` is set, `background_size` will default to | #' be set. If `background_image` is set, `background_size` will default to | ||||
| #' `cover` so the backround fills the screen. If both `background_image` and | |||||
| #' `cover` so the background fills the screen. If both `background_image` and | |||||
| #' `background_position` are set, will default to 100 percent. Defaults to | #' `background_position` are set, will default to 100 percent. Defaults to | ||||
| #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | ||||
| #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) | #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) |
| #' `.remark-slide-content` class. | #' `.remark-slide-content` class. | ||||
| #' @param background_size Background image size, requires `background_image` to | #' @param background_size Background image size, requires `background_image` to | ||||
| #' be set. If `background_image` is set, `background_size` will default to | #' be set. If `background_image` is set, `background_size` will default to | ||||
| #' `cover` so the backround fills the screen. If both `background_image` and | |||||
| #' `cover` so the background fills the screen. If both `background_image` and | |||||
| #' `background_position` are set, will default to 100 percent. Defaults to | #' `background_position` are set, will default to 100 percent. Defaults to | ||||
| #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | ||||
| #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) | #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) |
| #' `.remark-slide-content` class. | #' `.remark-slide-content` class. | ||||
| #' @param background_size Background image size, requires `background_image` to | #' @param background_size Background image size, requires `background_image` to | ||||
| #' be set. If `background_image` is set, `background_size` will default to | #' be set. If `background_image` is set, `background_size` will default to | ||||
| #' `cover` so the backround fills the screen. If both `background_image` and | |||||
| #' `cover` so the background fills the screen. If both `background_image` and | |||||
| #' `background_position` are set, will default to 100 percent. Defaults to | #' `background_position` are set, will default to 100 percent. Defaults to | ||||
| #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | ||||
| #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) | #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) |
| #' @describeIn style_xaringan Default values for font family, wieght, URLs and | |||||
| #' @describeIn style_xaringan Default values for font family, weight, URLs and | |||||
| #' font fallbacks. | #' font fallbacks. | ||||
| #' @param font_arg A font argument from the \pkg{xaringanthemer} `style_` | #' @param font_arg A font argument from the \pkg{xaringanthemer} `style_` | ||||
| #' function family. | #' function family. |
| #' `.remark-slide-content` class. | #' `.remark-slide-content` class. | ||||
| #' @param background_size Background image size, requires `background_image` to | #' @param background_size Background image size, requires `background_image` to | ||||
| #' be set. If `background_image` is set, `background_size` will default to | #' be set. If `background_image` is set, `background_size` will default to | ||||
| #' `cover` so the backround fills the screen. If both `background_image` and | |||||
| #' `cover` so the background fills the screen. If both `background_image` and | |||||
| #' `background_position` are set, will default to 100 percent. Defaults to | #' `background_position` are set, will default to 100 percent. Defaults to | ||||
| #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | ||||
| #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) | #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) |
| #' `.remark-slide-content` class. | #' `.remark-slide-content` class. | ||||
| #' @param background_size Background image size, requires `background_image` to | #' @param background_size Background image size, requires `background_image` to | ||||
| #' be set. If `background_image` is set, `background_size` will default to | #' be set. If `background_image` is set, `background_size` will default to | ||||
| #' `cover` so the backround fills the screen. If both `background_image` and | |||||
| #' `cover` so the background fills the screen. If both `background_image` and | |||||
| #' `background_position` are set, will default to 100 percent. Defaults to | #' `background_position` are set, will default to 100 percent. Defaults to | ||||
| #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | ||||
| #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) | #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) |
| #' `.remark-slide-content` class. | #' `.remark-slide-content` class. | ||||
| #' @param background_size Background image size, requires `background_image` to | #' @param background_size Background image size, requires `background_image` to | ||||
| #' be set. If `background_image` is set, `background_size` will default to | #' be set. If `background_image` is set, `background_size` will default to | ||||
| #' `cover` so the backround fills the screen. If both `background_image` and | |||||
| #' `cover` so the background fills the screen. If both `background_image` and | |||||
| #' `background_position` are set, will default to 100 percent. Defaults to | #' `background_position` are set, will default to 100 percent. Defaults to | ||||
| #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | ||||
| #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) | #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) |
| #' `.remark-slide-content` class. | #' `.remark-slide-content` class. | ||||
| #' @param background_size Background image size, requires `background_image` to | #' @param background_size Background image size, requires `background_image` to | ||||
| #' be set. If `background_image` is set, `background_size` will default to | #' be set. If `background_image` is set, `background_size` will default to | ||||
| #' `cover` so the backround fills the screen. If both `background_image` and | |||||
| #' `cover` so the background fills the screen. If both `background_image` and | |||||
| #' `background_position` are set, will default to 100 percent. Defaults to | #' `background_position` are set, will default to 100 percent. Defaults to | ||||
| #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | ||||
| #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) | #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) |
| #' `.remark-slide-content` class. | #' `.remark-slide-content` class. | ||||
| #' @param background_size Background image size, requires `background_image` to | #' @param background_size Background image size, requires `background_image` to | ||||
| #' be set. If `background_image` is set, `background_size` will default to | #' be set. If `background_image` is set, `background_size` will default to | ||||
| #' `cover` so the backround fills the screen. If both `background_image` and | |||||
| #' `cover` so the background fills the screen. If both `background_image` and | |||||
| #' `background_position` are set, will default to 100 percent. Defaults to | #' `background_position` are set, will default to 100 percent. Defaults to | ||||
| #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | ||||
| #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) | #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) |
| #' `.remark-slide-content` class. | #' `.remark-slide-content` class. | ||||
| #' @param background_size Background image size, requires `background_image` to | #' @param background_size Background image size, requires `background_image` to | ||||
| #' be set. If `background_image` is set, `background_size` will default to | #' be set. If `background_image` is set, `background_size` will default to | ||||
| #' `cover` so the backround fills the screen. If both `background_image` and | |||||
| #' `cover` so the background fills the screen. If both `background_image` and | |||||
| #' `background_position` are set, will default to 100 percent. Defaults to | #' `background_position` are set, will default to 100 percent. Defaults to | ||||
| #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | ||||
| #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) | #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) |
| #' `.remark-slide-content` class. | #' `.remark-slide-content` class. | ||||
| #' @param background_size Background image size, requires `background_image` to | #' @param background_size Background image size, requires `background_image` to | ||||
| #' be set. If `background_image` is set, `background_size` will default to | #' be set. If `background_image` is set, `background_size` will default to | ||||
| #' `cover` so the backround fills the screen. If both `background_image` and | |||||
| #' `cover` so the background fills the screen. If both `background_image` and | |||||
| #' `background_position` are set, will default to 100 percent. Defaults to | #' `background_position` are set, will default to 100 percent. Defaults to | ||||
| #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS | ||||
| #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) | #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) |
| , "text_slide_number_color", "{inverse_background_color}", ".remark-slide-number", "Slide Number Color", NA_character_ | , "text_slide_number_color", "{inverse_background_color}", ".remark-slide-number", "Slide Number Color", NA_character_ | ||||
| , "padding", "16px 64px 16px 64px", ".remark-slide-content", "Slide Padding in `top right [bottom left]` format", NA_character_ | , "padding", "16px 64px 16px 64px", ".remark-slide-content", "Slide Padding in `top right [bottom left]` format", NA_character_ | ||||
| , "background_image", "{NULL}", ".remark-slide-content", "Background image applied to each *and every* slide. Set `title_slide_background_image = \"none\"` to remove the background image from the title slide", NA_character_ | , "background_image", "{NULL}", ".remark-slide-content", "Background image applied to each *and every* slide. Set `title_slide_background_image = \"none\"` to remove the background image from the title slide", NA_character_ | ||||
| , "background_size", "{NULL}", ".remark-slide-content", "Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent", NA_character_ | |||||
| , "background_size", "{NULL}", ".remark-slide-content", "Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the background fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent", NA_character_ | |||||
| , "background_position", "{NULL}", ".remark-slide-content", "Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`", NA_character_ | , "background_position", "{NULL}", ".remark-slide-content", "Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`", NA_character_ | ||||
| , "code_highlight_color", "rgba(255,255,0,0.5)", ".remark-code-line-highlighted", "Code Line Highlight", "--code-highlight-color" | , "code_highlight_color", "rgba(255,255,0,0.5)", ".remark-code-line-highlighted", "Code Line Highlight", "--code-highlight-color" | ||||
| , "code_inline_color", "#000", ".remark-inline-code", "Inline Code Color", NA_character_ | , "code_inline_color", "#000", ".remark-inline-code", "Inline Code Color", NA_character_ |
| \alias{scale_xaringan_fill_continuous} | \alias{scale_xaringan_fill_continuous} | ||||
| \alias{scale_xaringan_color_continuous} | \alias{scale_xaringan_color_continuous} | ||||
| \alias{scale_xaringan_colour_continuous} | \alias{scale_xaringan_colour_continuous} | ||||
| \title{Xaringan Themer ggplot2 Scales} | |||||
| \title{Themed ggplot2 Scales} | |||||
| \usage{ | \usage{ | ||||
| scale_xaringan_discrete( | scale_xaringan_discrete( | ||||
| aes_type = c("color", "colour", "fill"), | aes_type = c("color", "colour", "fill"), |
| \item{background_size}{Background image size, requires \code{background_image} to | \item{background_size}{Background image size, requires \code{background_image} to | ||||
| be set. If \code{background_image} is set, \code{background_size} will default to | be set. If \code{background_image} is set, \code{background_size} will default to | ||||
| \code{cover} so the backround fills the screen. If both \code{background_image} and | |||||
| \code{cover} so the background fills the screen. If both \code{background_image} and | |||||
| \code{background_position} are set, will default to 100 percent. Defaults to | \code{background_position} are set, will default to 100 percent. Defaults to | ||||
| \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | ||||
| \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} | \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} |
| \item{background_size}{Background image size, requires \code{background_image} to | \item{background_size}{Background image size, requires \code{background_image} to | ||||
| be set. If \code{background_image} is set, \code{background_size} will default to | be set. If \code{background_image} is set, \code{background_size} will default to | ||||
| \code{cover} so the backround fills the screen. If both \code{background_image} and | |||||
| \code{cover} so the background fills the screen. If both \code{background_image} and | |||||
| \code{background_position} are set, will default to 100 percent. Defaults to | \code{background_position} are set, will default to 100 percent. Defaults to | ||||
| \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | ||||
| \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} | \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} |
| \item{background_size}{Background image size, requires \code{background_image} to | \item{background_size}{Background image size, requires \code{background_image} to | ||||
| be set. If \code{background_image} is set, \code{background_size} will default to | be set. If \code{background_image} is set, \code{background_size} will default to | ||||
| \code{cover} so the backround fills the screen. If both \code{background_image} and | |||||
| \code{cover} so the background fills the screen. If both \code{background_image} and | |||||
| \code{background_position} are set, will default to 100 percent. Defaults to | \code{background_position} are set, will default to 100 percent. Defaults to | ||||
| \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | ||||
| \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} | \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} |
| \item{background_size}{Background image size, requires \code{background_image} to | \item{background_size}{Background image size, requires \code{background_image} to | ||||
| be set. If \code{background_image} is set, \code{background_size} will default to | be set. If \code{background_image} is set, \code{background_size} will default to | ||||
| \code{cover} so the backround fills the screen. If both \code{background_image} and | |||||
| \code{cover} so the background fills the screen. If both \code{background_image} and | |||||
| \code{background_position} are set, will default to 100 percent. Defaults to | \code{background_position} are set, will default to 100 percent. Defaults to | ||||
| \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | ||||
| \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} | \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} |
| \item{background_size}{Background image size, requires \code{background_image} to | \item{background_size}{Background image size, requires \code{background_image} to | ||||
| be set. If \code{background_image} is set, \code{background_size} will default to | be set. If \code{background_image} is set, \code{background_size} will default to | ||||
| \code{cover} so the backround fills the screen. If both \code{background_image} and | |||||
| \code{cover} so the background fills the screen. If both \code{background_image} and | |||||
| \code{background_position} are set, will default to 100 percent. Defaults to | \code{background_position} are set, will default to 100 percent. Defaults to | ||||
| \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | ||||
| \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} | \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} |
| \item{background_size}{Background image size, requires \code{background_image} to | \item{background_size}{Background image size, requires \code{background_image} to | ||||
| be set. If \code{background_image} is set, \code{background_size} will default to | be set. If \code{background_image} is set, \code{background_size} will default to | ||||
| \code{cover} so the backround fills the screen. If both \code{background_image} and | |||||
| \code{cover} so the background fills the screen. If both \code{background_image} and | |||||
| \code{background_position} are set, will default to 100 percent. Defaults to | \code{background_position} are set, will default to 100 percent. Defaults to | ||||
| \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | ||||
| \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} | \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} |
| \item{background_size}{Background image size, requires \code{background_image} to | \item{background_size}{Background image size, requires \code{background_image} to | ||||
| be set. If \code{background_image} is set, \code{background_size} will default to | be set. If \code{background_image} is set, \code{background_size} will default to | ||||
| \code{cover} so the backround fills the screen. If both \code{background_image} and | |||||
| \code{cover} so the background fills the screen. If both \code{background_image} and | |||||
| \code{background_position} are set, will default to 100 percent. Defaults to | \code{background_position} are set, will default to 100 percent. Defaults to | ||||
| \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | ||||
| \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} | \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} |
| \item{background_size}{Background image size, requires \code{background_image} to | \item{background_size}{Background image size, requires \code{background_image} to | ||||
| be set. If \code{background_image} is set, \code{background_size} will default to | be set. If \code{background_image} is set, \code{background_size} will default to | ||||
| \code{cover} so the backround fills the screen. If both \code{background_image} and | |||||
| \code{cover} so the background fills the screen. If both \code{background_image} and | |||||
| \code{background_position} are set, will default to 100 percent. Defaults to | \code{background_position} are set, will default to 100 percent. Defaults to | ||||
| \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | ||||
| \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} | \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} |
| \item{background_size}{Background image size, requires \code{background_image} to | \item{background_size}{Background image size, requires \code{background_image} to | ||||
| be set. If \code{background_image} is set, \code{background_size} will default to | be set. If \code{background_image} is set, \code{background_size} will default to | ||||
| \code{cover} so the backround fills the screen. If both \code{background_image} and | |||||
| \code{cover} so the background fills the screen. If both \code{background_image} and | |||||
| \code{background_position} are set, will default to 100 percent. Defaults to | \code{background_position} are set, will default to 100 percent. Defaults to | ||||
| \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | ||||
| \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} | \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} |
| \item{background_size}{Background image size, requires \code{background_image} to | \item{background_size}{Background image size, requires \code{background_image} to | ||||
| be set. If \code{background_image} is set, \code{background_size} will default to | be set. If \code{background_image} is set, \code{background_size} will default to | ||||
| \code{cover} so the backround fills the screen. If both \code{background_image} and | |||||
| \code{cover} so the background fills the screen. If both \code{background_image} and | |||||
| \code{background_position} are set, will default to 100 percent. Defaults to | \code{background_position} are set, will default to 100 percent. Defaults to | ||||
| \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS | ||||
| \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} | \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size} | ||||
| } | } | ||||
| \section{Functions}{ | \section{Functions}{ | ||||
| \itemize{ | \itemize{ | ||||
| \item \code{xaringanthemer_font_default}: Default values for font family, wieght, URLs and | |||||
| \item \code{xaringanthemer_font_default}: Default values for font family, weight, URLs and | |||||
| font fallbacks. | font fallbacks. | ||||
| }} | }} | ||||
| In these cases, `theme_xaringan()` will look for a CSS file | In these cases, `theme_xaringan()` will look for a CSS file | ||||
| written by **xaringanthemer** in your slides' directory | written by **xaringanthemer** in your slides' directory | ||||
| or in a subfolder under the same directory | |||||
| or in a sub-folder under the same directory | |||||
| that it can use to determine the colors and fonts used in your slides. | that it can use to determine the colors and fonts used in your slides. | ||||
| If you happen to have multiple slide themes | If you happen to have multiple slide themes | ||||
| - Invert the direction of the discrete scales with `direction = -1`. | - Invert the direction of the discrete scales with `direction = -1`. | ||||
| - Control the range of the continuous color scale used with `begin` and `end`. | - Control the range of the continuous color scale used with `begin` and `end`. | ||||
| You can also invert the direction of the continous color scale by setting | |||||
| You can also invert the direction of the continuous color scale by setting | |||||
| `begin = 1` and `end = 0`. | `begin = 1` and `end = 0`. | ||||
| ## Fonts | ## Fonts | ||||
| I found a nice open source font called | I found a nice open source font called | ||||
| [Glacial Indifference](https://fontlibrary.org/en/font/glacial-indifference) | [Glacial Indifference](https://fontlibrary.org/en/font/glacial-indifference) | ||||
| by Alfredo Marco Pradil | by Alfredo Marco Pradil | ||||
| avilable at [fontlibrary.org](https://fontlibrary.org). | |||||
| available at [fontlibrary.org](https://fontlibrary.org). | |||||
| In my theme style function, | In my theme style function, | ||||
| I would use | I would use | ||||
| but sysfonts won't know where to find the TTF font files for this font. | but sysfonts won't know where to find the TTF font files for this font. | ||||
| To register the font with sysfont, we use `sysfonts::font_add()`, | |||||
| To register the font with sysfonts, we use `sysfonts::font_add()`, | |||||
| but first we need to download the font file — | but first we need to download the font file — | ||||
| the `sysfonts::font_add()` function requires the font file to be local. | the `sysfonts::font_add()` function requires the font file to be local. | ||||