Font

Applies to

PDFText object, PDFTextBlock object, PDFMultilineText object

Description

Gets or sets the font of the content in the PDFText/PDFTextBlock object.

Data type

PDFFont.

Usage

In scripts

This example shows how to set the font of the content in a PDFText object:

lpdf_text = create PDFtext
lpdf_text.backcolor.rgb = rgb(255,0,0)
lpdf_text.textcolor.rgb = rgb(0,255,0)
lpdf_text.font.fontsize = 38
lpdf_text.content = "I am PDFtext text"