R/fonts.R
fonts-dependencies.Rd
These functions provide common HTML dependencies for re-use by other R Markdown output formats or Shiny applications.
marianne_font_dep(use_gouvdown_fonts = TRUE)
spectral_font_dep(use_gouvdown_fonts = TRUE)
spectral_sc_font_dep(use_gouvdown_fonts = TRUE)
Do you prefer using gouvdown.fonts
dependencies?
An object that can be included in a list of dependencies passed to attachDependencies.
library(htmltools)
library(gouvdown)
tag <- p("The quick brown fox jumps over the lazy dog",
style = "font-family: 'Marianne', Arial, sans-serif")
tag <- attachDependencies(tag, marianne_font_dep())
html_print(tag)