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

procedure SetFont(AName: String; ASize: Single = -1; AStart: Integer = -1; ALength: Integer = -1);

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.