Learn R Programming

qtpaint (version 1.1.0)

text-extents: Text extents

Description

Get text extents and font metrics

Usage

qtextExtents(p, text)
qstrWidth(p, text)
qstrHeight(p, text)
qfontMetrics(p)

Arguments

p
The paint context
text
The text to analyze

Value

  • qtextExtents: A matrix representing the text bounds for qtextExtents), a number for qstrWidth and qstrHeight, or a vector with the ascent and descent for qfontMetrics