dot-build_glyph_grob: Build a single batched glyphGrob from collected glyph data

.build_glyph_grobR Documentation

Build a single batched glyphGrob from collected glyph data

Description

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.

Usage

.build_glyph_grob(ids, x, y, sizes, cols, font_files, depth = 0)

Arguments

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).

Value

A grid::glyphGrob or NULL.


gridmicrotex documentation built on May 16, 2026, 5:06 p.m.