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)

Arguments

use_gouvdown_fonts

Do you prefer using gouvdown.fonts dependencies?

Value

An object that can be included in a list of dependencies passed to attachDependencies.

Examples

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)