SimpleFontSubstitution
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.text.FontSubstitution
public final class SimpleFontSubstitution extends FontSubstitution
Represents a class for simple font substitution strategy.
Constructors
Constructor | Description |
---|---|
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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
originalFontName | java.lang.String | Original font name. |
substitutionFontName | java.lang.String | Substitution font name. |
isForcedBySaveOption | boolean | Substitution forced by DefaultFontName save option. |
SimpleFontSubstitution(String originalFontName, String substitutionFontName)
public SimpleFontSubstitution(String originalFontName, String substitutionFontName)
Initializes a new instance of SimpleFontSubstitution class.
Parameters:
Parameter | Type | Description |
---|---|---|
originalFontName | java.lang.String | Original font name. |
substitutionFontName | java.lang.String | Substitution 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:
Parameter | Type | Description |
---|---|---|
unicode | char | char value |
Returns: char - char value