User Tools

Site Tools


api:dk11:delphi:gisrendererabstract.tgis_rendererabstract.canvasfontmetrics_char_integer_integer_boolean

Table of Contents

TGIS_RendererAbstract.CanvasFontMetrics method

DK11 for Delphi | GisRendererAbstract.TGIS_RendererAbstract.CanvasFontMetrics | Fields | Methods | Properties

Provide basing metric for a currently selected CanvasFont.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  procedure CanvasFontMetrics(
    var _break_char : Char;
    var _height : Integer;
    var _ascent : Integer;
    var _true_type : Boolean
  ); virtual; abstract;
// C++ Builder
public:
  virtual void CanvasFontMetrics(
    Char* &_break_char,
    int &_height,
    int &_ascent,
    bool &_true_type
  ) = 0;

Parameters

Name Type Description
_break_char Char character treated as a break character (space)
_height Integer font height in pixels
_ascent Integer font ascent size in pixels
_true_type Boolean true, if font is TrueType or equivalent (scalable as vector)
2018/02/17 00:10