Table of Contents

TTMSFNCPDFGraphicsLibFont Class

Font settings applied to text drawn on a PDF page, including name, size, colour, and style.

API unit family: TMSFNCPDFCoreLibBase Inherits from: TPersistent

Syntax

TTMSFNCPDFGraphicsLibFont = class(TPersistent)

Properties

Name Description
Color Font colour. Default is gcBlack.
FileName Optional path to a font file used for custom font embedding when TTMSFNCPDFEmbedFontType is eftCustom.
Name Font family name, for example Arial or Times New Roman.
Size Font size in points, scaled according to the current PDF page scale.
SizeNoScale Font size in points, without applying the current PDF page scale factor.
Style Font style flags such as bold, italic, underline, and strikethrough. Default is no style.

Methods

Name Description
BeginUpdate Suspends change notifications so multiple font properties can be set without triggering an OnChanged event for each one.
EndUpdate Resumes change notifications after a BeginUpdate call and fires OnChanged if any properties were modified during the update block.

Events

Name Description
OnChanged Fired when any font property changes.