Returns a theme that swaps font families while preserving sizes from the current global theme.
Arguments
- era
One of: "journal-1930s","journal-1960s","slide-1970s", "slide-1980s","typewriter-1950s","handdrawn-pen".
- scope
"base_only" (only
text
), "targeted" (also title/subtitle/caption, axis/strip/legend if they already exist), or "all_listed" (force-create any missing listed elements by cloning a template).- install_if_missing, use_showtext
See
.period_families()
.
Value
A ggplot2::theme
that changes only font families on listed elements.
Examples
if (FALSE) { # \dontrun{
if (requireNamespace("ggplot2", quietly = TRUE)) {
ggplot2::ggplot(mtcars, ggplot2::aes(wt, mpg)) +
ggplot2::geom_point() +
period_font_theme()
}
} # }