Learn R Programming

fontquiver (version 0.2.1)

htmlFontDependency: Include font as CSS dependency

Description

Include font as CSS dependency

Usage

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

Run this code
# 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;
# }

Run the code above in your browser using DataLab