SimpleFontSubstitution
Contents
[
Hide
]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
| Constructor | Description |
|---|---|
| SimpleFontSubstitution | Initializes a new instance of {@code SimpleFontSubstitution} class. |
| SimpleFontSubstitution | Initializes a new instance of {@code SimpleFontSubstitution} class. |
Methods
| Method | Description |
|---|---|
| getOriginalFontName | Gets original font name that should be substituted with {@code SubstitutionFontName} |
| getSubstitutedUnicode | Returns unicode substitution |
| getSubstitutionFontName | Gets 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:
| Parameter | Type | Description |
|---|---|---|
| unicode | char value |
Returns: char value
getSubstitutionFontName
public String getSubstitutionFontName()
Gets font name that should substitute the {@code OriginalFontName}
Returns: String value