Description Usage Arguments Value Author(s) Examples
This function returns a bitmap matrix that represents the glyph of a given string with the specified font.
1 2 | glyph_bitmap(ch = "A", family = "mono", face = "regular",
pixel_size = 50, rot = 0)
|
ch |
A character string 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". |
pixel_size |
The pixel size of the font. |
rot |
The angle in degrees of the counterclockwise string rotation. |
A matrix with class "glyph_bitmap" that represents the bitmap glyph. Values in the matrix are integers ranging from 0 to 255. Larger number indicates a darker color.
Yixuan Qiu <http://statr.me/>
1 2 | f = glyph_bitmap("fontr", family = "serif", face = "italic")
plot(f)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.