public class SelectFont extends TextStateOperator
Class representing Tf operator (set text font and size).
Constructor and Description |
---|
SelectFont(int index,
com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Constructor for operator class.
|
SelectFont(String resName,
double size)
Constructor for writin program.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
|
String |
getName()
Gets name of font.
|
double |
getSize()
Gets size of text.
|
String |
toString()
Returns text representation of operator.
|
clear, getCommand, getCommandName, getIndex, getParameters, getTrailerable, isTextShowOperator, reset, setIndex, toString
public SelectFont(int index, com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Constructor for operator class.
index
- Index of operator.command
- Operator command.public SelectFont(String resName, double size)
Constructor for writin program.
resName
- The name of font resource, e.g. F1, F2 etc.size
- Size of the font.public String getName()
Gets name of font.
public double getSize()
Gets size of text.
public void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
accept
in class TextOperator
visitor
- Visitor object.