SelectFont
Overview
SelectFont is a class in Aspose.PDF FOSS for .NET.
Inherits from: TextStateOperator.
Tf — Select font and size.
This class declares 10 methods for SelectFont objects in .NET programs.
Available methods include: Accept, IsTextShowOperator, SelectFont, TextOperator, TextStateOperator, ToPdf, ToString, ValueEquals.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: CommandName, FontName, Index, Name, Size, TextProperties.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
FontName | string | Read | Gets the name of the font resource, such as F1, without the leading slash. |
Size | double | Read | Gets the font size, in unscaled text space units (points when the text matrix does not scale). |
Name | string | Read | Public-API-shape alias for FontName. |
TextProperties | Aspose.Pdf.Facades.TextProperties? | Read | Optional appearance metadata. |
CommandName | string | Read | The PDF command name (last token of the serialised form, e.g. |
Index | int | Read/Write | 1-based position of this operator within its containing OperatorCollection. |
Methods
| Signature | Description |
|---|---|
SelectFont(resName: string, size: double) | Creates a Tf operator that selects the named font resource (given without the leading slash) at the given font size. |
ToPdf() | Calls ToPdf on this SelectFont instance. |
ToString() | Calls ToString on this SelectFont instance. |
Accept(visitor: IOperatorSelector) | Calls Accept(visitor) on this SelectFont instance. |
TextStateOperator() | Calls TextStateOperator on this SelectFont instance. |
TextStateOperator(textProperties: Aspose.Pdf.Facades.TextProperties) | Calls TextStateOperator(textProperties) on this SelectFont instance. |
TextOperator() | Calls TextOperator on this SelectFont instance. |
TextOperator(textProperties: Aspose.Pdf.Facades.TextProperties) | Calls TextOperator(textProperties) on this SelectFont instance. |
IsTextShowOperator(op: Operator) | True when op is a text-showing operator (Tj / TJ / ’ / " — concrete subclasses of TextShowOperator). |
ValueEquals(op: Operator) | True when this operator’s serialised PDF form equals op’s. |