| .build_glyph_grob | R Documentation |
Creates a grid::glyphGrob containing all math glyphs,
using grDevices::glyphInfo() to describe glyph IDs, positions,
sizes, colors, and fonts. Each unique font file becomes an entry
in the glyphFontList.
.build_glyph_grob(ids, x, y, sizes, cols, font_files, depth = 0)
ids |
Integer vector of glyph IDs. |
x, y |
Numeric vectors of glyph positions (already y-flipped, in bigpts). |
sizes |
Numeric vector of font sizes. |
cols |
Character vector of colors. |
font_files |
Character vector of font file paths. |
depth |
Depth below the baseline in bigpts (default 0). |
A grid::glyphGrob or NULL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.