Skip to main content
Table of Contents

ITMSFNCCustomPDFRichTextLib.SetFont Method

Sets the font name and optionally the size for the specified text range.

API unit family: TMSFNCPDFRichTextLib Declaring type: ITMSFNCCustomPDFRichTextLib

Syntax

FMX.TMSFNCPDFRichTextLib.hppPascalC++
procedure SetFont(AName: String; ASize: Single = -1; AStart: Integer = -1; ALength: Integer = -1);
virtual void __fastcall SetFont(System::UnicodeString AName, float ASize = -1.000000E+00f, int AStart = 0xffffffff, int ALength = 0xffffffff) = 0;

Parameters

Name Description
AName Font family name to apply.
ASize Point size; pass -1 to leave the current size unchanged.
AStart Zero-based start index; -1 uses the selection start.
ALength Number of characters; -1 uses the selection length.