com.aspose.pdf.text

Class SimpleFontSubstitution



  • public final class SimpleFontSubstitution
    extends FontSubstitution

    Represents a class for simple font substitution strategy.

    • Constructor Detail

      • SimpleFontSubstitution

        public SimpleFontSubstitution(String originalFontName,
                              String substitutionFontName)

        Initializes a new instance of SimpleFontSubstitution class.

        Parameters:
        originalFontName - Original font name.
        substitutionFontName - Substitution font name.
    • Method Detail

      • getOriginalFontName

        public String getOriginalFontName()

        Gets original font name that should be substituted with SubstitutionFontName

        Returns:
        String value
      • getSubstitutionFontName

        public String getSubstitutionFontName()

        Gets font name that should substitute the OriginalFontName

        Returns:
        String value
      • getSubstitutedUnicode

        public char getSubstitutedUnicode(char unicode)

        Returns unicode substitution

        Overrides:
        getSubstitutedUnicode in class FontSubstitution
        Parameters:
        unicode - char value
        Returns:
        char value