% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grid-builder.R
\name{.build_glyph_grob}
\alias{.build_glyph_grob}
\title{Build a single batched glyphGrob from collected glyph data}
\usage{
.build_glyph_grob(ids, x, y, sizes, cols, font_files, depth = 0)
}
\arguments{
\item{ids}{Integer vector of glyph IDs.}

\item{x, y}{Numeric vectors of glyph positions (already y-flipped, in bigpts).}

\item{sizes}{Numeric vector of font sizes.}

\item{cols}{Character vector of colors.}

\item{font_files}{Character vector of font file paths.}

\item{depth}{Depth below the baseline in bigpts (default 0).}
}
\value{
A \code{grid::glyphGrob} or \code{NULL}.
}
\description{
Creates a \code{grid::glyphGrob} containing all math glyphs,
using \code{grDevices::glyphInfo()} to describe glyph IDs, positions,
sizes, colors, and fonts. Each unique font file becomes an entry
in the \code{glyphFontList}.
}
\keyword{internal}
