% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grid-builder.R
\name{build_latex_children}
\alias{build_latex_children}
\title{Build grid children from a MicroTeX layout data.frame}
\usage{
build_latex_children(
  layout_df,
  total_h,
  depth = 0,
  text_gp = NULL,
  render_mode = "typeface"
)
}
\arguments{
\item{layout_df}{Data.frame returned by \code{parse_latex_cpp()}.}

\item{total_h}{Total height of the formula (height + depth) in bigpts.}

\item{depth}{Depth below the baseline in bigpts (default 0).}

\item{text_gp}{Optional \code{\link[grid]{gpar}} for text grobs
(from \code{\\text\{\}} blocks). Controls fontfamily and fontface.}

\item{render_mode}{Character string: \code{"path"} or \code{"typeface"}.
In typeface mode, glyph records are rendered via \code{glyphGrob}.}
}
\value{
A \code{grid::gList} of child grobs.
}
\description{
Converts each row of the layout data.frame into the appropriate
grid grob (pathGrob, segmentsGrob, rectGrob, textGrob, glyphGrob).
}
\keyword{internal}
