TCanvas.GetTextMetrics function
Gets physical dimension of the currently selected font of the canvas.
Declaration
function GetTextMetrics(out TM: TLCLTextMetric): Boolean; virtualArguments
TM | Structure with the text metrics. |
Function result
True on success.Description
Calls RequiredState to check state flags for the canvas, and
ensure that the Handle and the Font are valid. RequiredState raises an
Exception if the Handle for the canvas is not valid.
Calls GetTextMetrics in the LCL interface to retrieve the ascender,
descender, and height metrics for the canvas Handle. The values are assigned
to members in the TM output argument.
The return value is True when text metrics were successfully retrieved from the widgetset.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
