
Last chance! 50% off unlimited learning
Sale ends in
getLatexCharMetrics(charCode, cex=1, face=1, engine=getOption("tikzDefaultEngine"))
as.integer
. Non-numeric values will not be accepted.getLatexCharMetrics
first checks to see if metrics have allready been
calculated for the given character using the given values of cex
and
face
. If so, cached values are returned. If no cached values exists,
the LaTeX compiler specified by options( tikzLatex )
is invoked in
order to calculate them.tikz
, getLatexStrWidth
# Calculate ascent, descent and width for "A"
getLatexCharMetrics(65)
Run the code above in your browser using DataLab