htmlFontDependency: Include font as CSS dependency

Description Usage Arguments Examples

View source: R/html-dependency.R

Description

Include font as CSS dependency

Usage

1

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

1
2
3
4
5
6
7
# 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;
# }

lionel-/fontquiver documentation built on May 21, 2019, 6:40 a.m.