fa_png: Create a PNG version of a FontAwesome icon

Description Usage Arguments

View source: R/fa_png.R

Description

Get a FontAwesome icon as a PNG file. We can optionally set the fill attribute before writing the PNG. Additionally, there is control over the output width and height (usually, icons are 512 by 512 pixels).

Usage

1

Arguments

name

the name of the FontAwesome icon.

file

the path to the output file. If NULL, then filename will take the short name of the icon (with a .png extension).

fill

an option to change the fill color of the icon.

width

the output width in pixels. If NULL, then the output width will match that of the SVG's viewBox.

height

the output height in pixels. If NULL, then the output height will match that of the SVG's viewBox.


rstudio/fontawesome documentation built on Sept. 3, 2019, 4:06 p.m.