Font ascent and descent for a text page-object's font
Source:R/glyph_paths.R
pdf_text_font_metrics.RdReturns the font's vertical metrics — ascent (the maximum
height above the baseline) and descent (the maximum depth
below the baseline, conventionally a negative number) — at the
requested font_size. Useful for laying out text with
consistent line heights and for converting between PDF text
coordinates (baseline-relative) and bounding-box coordinates.
Value
A named list with two numeric scalars: ascent and
descent. Either is NA when PDFium can't resolve it.
See also
pdf_text_font() for the font's name + weight +
italic-angle metadata; pdf_glyph_path() for per-glyph
outlines.