SelectFont

Overview

SelectFont is a class in Aspose.PDF FOSS for Java. Inherits from: TextStateOperator.

Select font and size operator (Tf).

This class provides 4 methods for working with SelectFont objects in Java programs. Available methods include: SelectFont, getFontName, getSize. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: fontName, size.

Properties

NameTypeAccessDescription
fontNameStringReadReturns the font resource name.
sizedoubleReadReturns the font size.

Methods

SignatureDescription
SelectFont(fontName: String, size: double)Creates a SelectFont (Tf) operator with the specified font name and size.
SelectFont(operands: List<PdfBase>)Creates a SelectFont (Tf) operator from parsed operands.
getFontName()StringReturns the font resource name.
getSize()doubleReturns the font size.

See Also

 English