SelectFont
Contents
[
Hide
]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
Constructor | Description |
---|---|
SelectFont(int index, ICommand command) | Constructor for operator class. |
SelectFont(String resName, double size) | Constructor for writin program. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
index | int | Index of operator. |
command | ICommand | Operator command. |
SelectFont(String resName, double size)
public SelectFont(String resName, double size)
Constructor for writin program.
Parameters:
Parameter | Type | Description |
---|---|---|
resName | java.lang.String | The name of font resource, e.g. F1, F2 etc. |
size | double | Size 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:
Parameter | Type | Description |
---|---|---|
visitor | IOperatorSelector | Visitor object. |
toString()
public String toString()
Returns text representation of operator.
Returns: java.lang.String - Text representation of operator.