Include font as CSS dependency

htmlFontDependency(...)

Arguments

...

Fonts or collections of fonts. See font_families() and font_variants() for creating collections of fonts. You can also supply lists of individual fonts as returned by fonts().

Examples

# Create an htmlDependency object:
dep <- htmlFontDependency(font_families("Bitstream Vera"))

# Use the fonts in your dependent css or html files. For example:
# body {
#  font-family: 'Bitstream Vera Sans Mono', courier;
# }