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

NameTypeAccessDescription
FontNamestringReadGets the name of the font resource, such as F1, without the leading slash.
SizedoubleReadGets the font size, in unscaled text space units (points when the text matrix does not scale).
NamestringReadPublic-API-shape alias for FontName.
TextPropertiesAspose.Pdf.Facades.TextProperties?ReadOptional appearance metadata.
CommandNamestringReadThe PDF command name (last token of the serialised form, e.g.
IndexintRead/Write1-based position of this operator within its containing OperatorCollection.

Methods

SignatureDescription
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.

See Also

 English