Vcl.Graphics.TFont.Size

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Size: Integer read GetSize write SetSize stored False;

C++

__property int Size = {read=GetSize, write=SetSize, stored=false, nodefault};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TFont

Description

Specifies the height of the font in points.

Use Size to specify the point size of the font. If the value is negative, the internal leading that appears at the top of each line of text is included. If the value is positive, Size represents the height of the characters but not the internal leading.

To determine the size of the font in pixels, use the Height property instead. The value of Size can be obtained from the height in pixels using this formula:

Font.Size = -Font.Height * 72 / Font.PixelsPerInch

When the Size property has a positive value, the Height property has a negative value. When the Height property has a positive value, the Size property has a negative value.

See Also