sp_load_font: Use showtext to load fonts

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Use showtext to load fonts

Usage

1
sp_load_font(font_path)

Arguments

font_path

Specify font type. Give a path for one font type file like '/etc/fonts/Arial.ttf' or 'HeiArial.ttc'(if in current directory), Default system default.

Value

font_name or null

Examples

1
2
3
4
## Not run:
sp_load_font(font_path="arial.tff")

## End(Not run)

Tong-Chen/YSX documentation built on Jan. 25, 2021, 2:49 a.m.