cosmofont: Create a stylesheet with custom settings using local and web...

Description Usage Arguments Examples

View source: R/cosmofont.r

Description

Create a stylesheet with custom settings using local and web fonts

Usage

1
cosmofont(..., path = NULL, filename = "stylesheet.css", uri = FALSE)

Arguments

...

A series of font_options. See font_options and google_font_options.

path

Path to export the stylesheet. The default value is NULL which will cause the stylesheet to be created in the working directory.

filename

Name of exported stylesheet. The default value is "stylesheet.css".

uri

If set to TRUE the stylesheet will contain data URIs for the fonts. If set to FALSE font files will be coppied into the directory specified by path. The default value is FALSE.

Examples

1
2
3
4
5
6
7
8
## Not run: 

roboto <- google_font_options("Roboto", italic=TRUE)
newscycle <- font_options("~/Desktop/newscycle.ttf")
cosmofont(roboto, newscycle, path="~/Desktop/fonts", uri=TRUE)


## End(Not run)

seankross/cosmofont documentation built on May 29, 2019, 4:55 p.m.