Font

Applies to

PDFText object, PDFTextBlock object, PDFMultilineText object, PDFFormFieldComboBox object, PDFFormFieldListBox object, PDFFormFieldPushButton object, PDFFormFieldText object

Description

Gets or sets the font of the content in the 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"