SimpleFontSubstitution

Inheritance: java.lang.Object, com.aspose.pdf.text.FontSubstitution com.aspose.pdf.text.SimpleFontSubstitution, com.aspose.pdf.text.FontSubstitution, com.aspose.pdf.text.SimpleFontSubstitution

public final class SimpleFontSubstitution extends FontSubstitution

Represents a class for simple font substitution strategy.

Constructors

ConstructorDescription
SimpleFontSubstitutionInitializes a new instance of {@code SimpleFontSubstitution} class.
SimpleFontSubstitutionInitializes a new instance of {@code SimpleFontSubstitution} class.

Methods

MethodDescription
getOriginalFontNameGets original font name that should be substituted with {@code SubstitutionFontName}
getSubstitutedUnicodeReturns unicode substitution
getSubstitutionFontNameGets font name that should substitute the {@code OriginalFontName}

SimpleFontSubstitution

Initializes a new instance of {@code SimpleFontSubstitution} class.

SimpleFontSubstitution

Initializes a new instance of {@code SimpleFontSubstitution} class.

getOriginalFontName

public String getOriginalFontName()

Gets original font name that should be substituted with {@code SubstitutionFontName}

Returns: String value

getSubstitutedUnicode

public char getSubstitutedUnicode(char unicode)

Returns unicode substitution

Parameters:

ParameterTypeDescription
unicodechar value

Returns: char value

getSubstitutionFontName

public String getSubstitutionFontName()

Gets font name that should substitute the {@code OriginalFontName}

Returns: String value