figlet_font: Get figlet font

Description Usage Arguments Details Value Examples

View source: R/font.R

Description

Get a figlet font, returning a figlet_font object that can be used with figlet.

Usage

1
2
3
figlet_font(font, verbose = FALSE)

figlet_font_list()

Arguments

font

Path or name of the font to load

verbose

Logical, indicating if we should be verbose during font load.

Details

This function tries to do the right thing with loading fonts:

  1. if font is a figlet_font already, return it

  2. if font is a known figlet_font in the internal font registry, then return it (faster than reading it again)

  3. if font is a filename, then load the font and add it to the registry

Value

A figlet_font object for use with figlet

Examples

1
2
3
4
5
6
7
8
# Load a font with a full path
rfiglet::figlet_font(system.file("fonts/standard.flf", package = "rfiglet"))

# Load a previously seen font with a name
rfiglet::figlet_font("standard")

# List known fonts
rfiglet::figlet_font_list()

richfitz/rfiglet documentation built on Feb. 12, 2021, 1:41 a.m.