Skip to content

Commit f6a2340

Browse files
authored
Add better guidance on font selection to docs (#6457)
1 parent 3d3b425 commit f6a2340

8 files changed

+110
-86
lines changed

R/theme-elements.R

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,14 @@ element_line <- function(colour = NULL, linewidth = NULL, linetype = NULL,
131131
}
132132

133133

134-
#' @param family Font family
134+
#' @param family The typeface to use. The validity of this value will depend on
135+
#' the graphics device being used for rendering the plot. See
136+
#' [the systemfonts vignette](https://systemfonts.r-lib.org/articles/systemfonts.html)
137+
#' for guidance on the best way to access fonts installed on your computer.
138+
#' The values `"sans"`, `"serif"`, and `"mono"` should always be valid and
139+
#' will select the default typeface for the respective styles. However, what
140+
#' is considered default is dependant on the graphics device and the operating
141+
#' system.
135142
#' @param face Font face ("plain", "italic", "bold", "bold.italic")
136143
#' @param hjust Horizontal justification (in \eqn{[0, 1]})
137144
#' @param vjust Vertical justification (in \eqn{[0, 1]})

man/element.Rd

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/guide_bins.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/guide_colourbar.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/guide_coloursteps.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/guide_custom.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/hmisc.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)