SimpleFontSubstitution

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

public final class SimpleFontSubstitution extends FontSubstitution

Represents a class for simple font substitution strategy.

Constructors

ConstructorDescription
SimpleFontSubstitution(String originalFontName, String substitutionFontName, boolean isForcedBySaveOption)Initializes a new instance of SimpleFontSubstitution class.
SimpleFontSubstitution(String originalFontName, String substitutionFontName)Initializes a new instance of SimpleFontSubstitution class.

Methods

MethodDescription
getOriginalFontName()Gets original font name that should be substituted with SubstitutionFontName
getSubstitutionFontName()Gets font name that should substitute the OriginalFontName
getSubstitutedUnicode(char unicode)Returns unicode substitution

SimpleFontSubstitution(String originalFontName, String substitutionFontName, boolean isForcedBySaveOption)

public SimpleFontSubstitution(String originalFontName, String substitutionFontName, boolean isForcedBySaveOption)

Initializes a new instance of SimpleFontSubstitution class.

Parameters:

ParameterTypeDescription
originalFontNamejava.lang.StringOriginal font name.
substitutionFontNamejava.lang.StringSubstitution font name.
isForcedBySaveOptionbooleanSubstitution forced by DefaultFontName save option.

SimpleFontSubstitution(String originalFontName, String substitutionFontName)

public SimpleFontSubstitution(String originalFontName, String substitutionFontName)

Initializes a new instance of SimpleFontSubstitution class.

Parameters:

ParameterTypeDescription
originalFontNamejava.lang.StringOriginal font name.
substitutionFontNamejava.lang.StringSubstitution font name.

getOriginalFontName()

public String getOriginalFontName()

Gets original font name that should be substituted with SubstitutionFontName

Returns: java.lang.String - String value

getSubstitutionFontName()

public String getSubstitutionFontName()

Gets font name that should substitute the OriginalFontName

Returns: java.lang.String - String value

getSubstitutedUnicode(char unicode)

public char getSubstitutedUnicode(char unicode)

Returns unicode substitution

Parameters:

ParameterTypeDescription
unicodecharchar value

Returns: char - char value