[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Contains the Font used to render text on the drawing surface.
Source position: graphics.pp line 1182
published property TCanvas.Font : TFont |
Font is a TFont property which contains the font used to render text on the drawing surface. Values in Font determine the formatting / layout applied in methods that render text, like TextOut and TextRect. Setting a new value in Font calls the Assign method in the class instance to store the new values. Property values in Font can also be modified directly to use the desired values.
The values assigned in Font are used in methods that calculate the size for text like TextExtent, TextHeight, TextWidth, and TextFitInfo.
|
Represents a font used to draw text in an application. |
|
|
Writes text at the specified position on the canvas. |
|
|
Draws text on the canvas at the specified location using the given style. |
|
|
Calculates the width and height for the specified Text using the Font for the canvas. |
|
|
Gets the height for the specified text using the canvas Font. |
|
|
Gets the width for the specified text using the canvas Font. |
|
|
Gets the number of characters that fit in the specified maximum width. |
Version 3.2 | Generated 2024-02-25 | Home |