Package ‘fontquiver’

September 4, 2016 Title Set of Installed Fonts Version 0.1.0 Description Provides a set of fonts with permissive licences. This is useful when you want to avoid system fonts to make sure your outputs are reproducible. Depends R (>= 3.3.0) Imports fontBitstreamVera (>= 0.1.0) Suggests testthat, htmltools License GPL-3 Encoding UTF-8 LazyData true RoxygenNote 5.0.1 NeedsCompilation no Author Lionel Henry [cre, aut] Maintainer Lionel Henry Repository CRAN Date/Publication 2016-09-04 20:14:36

R topics documented:

font_bitstream_vera ...... 2 font_dejavu ...... 2 htmlFontDependency ...... 3

Index 4

1 2 font_dejavu

font_bitstream_vera fonts

Description Available variants (style): sans (roman, bold, oblique, oblique-bold), sans-mono (roman, bold, oblique, bold-oblique), (roman, bold).

Usage font_bitstream_vera(variant = "sans", style = "roman", ext = "ttf")

Arguments variant Variant of the font, e.g. "sans" or "serif". style Style of the font, e.g. "roman" or "bold". ext Either "ttf" or "woff".

Value The path to the requested font is provided in the file field. The version number of the font is given in the version field.

References https://www.gnome.org/fonts/

font_dejavu Dejavu fonts

Description Available variants (style): sans (book, bold, oblique, bold-oblique, extra-light), sans-condensed (book, bold, oblique, bold-oblique), sans-mono (book, bold, oblique, bold-oblique), serif (book, bold, italic, bold-italic), serif-condensed (book, bold, italic, bold-italic), math--gyre (regular).

Usage font_dejavu(variant = "sans", style = "book", ext = "ttf")

Arguments variant Variant of the font, e.g. "sans" or "serif". style Style of the font, e.g. "roman" or "bold". ext Either "ttf" or "woff". htmlFontDependency 3

Value The path to the requested font is provided in the file field. The version number of the font is given in the version field.

References http://dejavu-fonts.org

htmlFontDependency Include font as CSS dependency

Description Include font as CSS dependency

Usage htmlFontDependency(font_getter = font_bitstream_vera, variant = NULL, style = NULL)

Arguments font_getter A fontquiver getter function such as font_bitstream_vera. variant Variant of the font, e.g. "sans" or "serif". style Style of the font, e.g. "roman" or "bold".

Examples # Create an htmlDependency object: dep <- htmlFontDependency(variant = "serif")

# Check the name of the embedded font dep$name

# Use that name in your dependent css or html files. For example: # body { # font-family: fontquiver-bitstream-vera-sans-roman, sans-serif; #} Index

font_bitstream_vera,2 font_dejavu,2 htmlFontDependency,3

4