Skip to main content
Table of Contents

TTMSFNCUtils.SetFontSize Method

Sets the font size in points, adjusting for an optional DPI scale factor.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

FMX.TMSFNCUtils.hppPascalC++
class procedure SetFontSize(AFont: TFont; ASize: Single; AScaleFactor: Single = 1);
__classmethod void __fastcall SetFontSize(Fmx::Graphics::TFont* AFont, float ASize, float AScaleFactor = 1.000000E+00f);

Parameters

Name Description
AFont The font whose size is to be set.
ASize Desired font size in points.
AScaleFactor DPI scale multiplier; defaults to 1 (no scaling).