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
| Name | Type | Access | Description |
|---|---|---|---|
fontName | String | Read | Returns the font resource name. |
size | double | Read | Returns the font size. |
Methods
| Signature | Description |
|---|---|
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() → String | Returns the font resource name. |
getSize() → double | Returns the font size. |