Description Usage Arguments Value Author(s) Examples
View source: R/glyph_outline.R
This function extracts the outline of character glyphs contained in a font, and converts the outline into polygons.
1  | glyph_polygon(ch = "a", family = "sans", face = "regular", nseg = 10)
 | 
ch | 
 A character whose glyph is to be extracted.  | 
family | 
 The family of the font. See
  | 
face | 
 The 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   | 
A data frame with class "glyph_polygon" that contains two columns,
giving the x and y coordinates of the outline. Rows that contain
NA represents the start of a new polygon path.
Yixuan Qiu <http://statr.me/>
1 2  | R = glyph_polygon("R", family = "sans", face = "bold")
plot(R)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.