glyph: Create a text polygon

Description Usage Arguments Value Examples

View source: R/glyph.R

Description

Create a text polygon

Usage

1
glyph(glyph, family = "serif", face = "regular", nseg = 10)

Arguments

glyph

text input - use only one character

family

font family - see sysfonts::font_families()

face

Font face, possible values are "regular", "bold", "italic" and "bolditalic".

nseg

The number of line segments to approximate a piece of curve in the outline. The larger nseg is, the smoother text outlines would be. Usually a value between 5~20 would be enough.

Value

tibble with columns x, y, and glyph

Examples

1
glyph("s")

njtierney/ishihara documentation built on May 31, 2020, 9:01 a.m.