Skip to contents

Convert FontAwesome alias strings to their corresponding Unicode format.

All aliases should be prepended with "fa".

Usage

fontawesome(aliases, type = "solid")

Arguments

aliases

A string or vector of strings to retrieve Unicode values for.

type

A character string denoting which FontAwesome library subset to search. One of "solid", "regular", or "brands". Default is "solid".

Value

A named character vector of Unicode values corresponding to the provided aliases. If an alias is not found, its value will be NA.

Examples

fontawesome(c("fa-car", "fa-user"))
#>  fa-car fa-user 
#>     ""     ""