| .make_text_measurer | R Documentation |
Returns a function that measures text using R's grid graphics system.
The closure is called from C++ during parse_latex_cpp() to get
accurate font metrics for \text{} blocks.
.make_text_measurer(text_gp)
text_gp |
A |
A function taking (text, font_style) that returns
c(width_ratio, ascent_ratio, height_ratio) where ratios
are relative to the font size.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.