google_font_options: Specify font options for a Google font

Description Usage Arguments Examples

View source: R/cosmofont.r

Description

You can browse Google fonts at https://www.google.com/fonts.

Usage

1
google_font_options(font_name, bold = FALSE, italic = FALSE, weight = 400)

Arguments

font_name

The name of the font exactly as it appears on Google fonts. Case sensitive.

bold

If TRUE the font-weight will be set to 700. The default value is FALSE.

italic

If TRUE the font-style will be set to italic. The default value is FALSE.

weight

The numeric weight of the font. The default value is 400. Setting this value will override the value of bold.

Examples

1
2
3
4
5
6
## Not run: 

open_sans <- google_font_options("Open Sans", weight=600)
roboto <- google_font_options("Roboto", italic=TRUE)

## End(Not run)

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