SelectFont

Inheritance: java.lang.Object, com.aspose.pdf.Operator, com.aspose.pdf.operators.TextOperator, com.aspose.pdf.operators.TextStateOperator

public class SelectFont extends TextStateOperator

Class representing Tf operator (set text font and size).

Constructors

ConstructorDescription
SelectFont(int index, ICommand command)Constructor for operator class.
SelectFont(String resName, double size)Constructor for writin program.

Methods

MethodDescription
getName()Gets name of font.
getSize()Gets size of text.
accept(IOperatorSelector visitor)Accepts visitor object to process operator.
toString()Returns text representation of operator.

SelectFont(int index, ICommand command)

public SelectFont(int index, ICommand command)

Constructor for operator class.

Parameters:

ParameterTypeDescription
indexintIndex of operator.
commandICommandOperator command.

SelectFont(String resName, double size)

public SelectFont(String resName, double size)

Constructor for writin program.

Parameters:

ParameterTypeDescription
resNamejava.lang.StringThe name of font resource, e.g. F1, F2 etc.
sizedoubleSize of the font.

getName()

public String getName()

Gets name of font.

Returns: java.lang.String - String value

getSize()

public double getSize()

Gets size of text.

Returns: double - double value

accept(IOperatorSelector visitor)

public void accept(IOperatorSelector visitor)

Accepts visitor object to process operator.

Parameters:

ParameterTypeDescription
visitorIOperatorSelectorVisitor object.

toString()

public String toString()

Returns text representation of operator.

Returns: java.lang.String - Text representation of operator.