com.aspose.pdf.text

Class SystemFontsSubstitution



  • public final class SystemFontsSubstitution
    extends FontSubstitution

    Represents a class for font substitution strategy that substitutes fonts with system fonts.

    • Constructor Detail

      • SystemFontsSubstitution

        public SystemFontsSubstitution(int fontCategories)

        Initializes a new instance of SystemFontsSubstitution class.

        Parameters:
        fontCategories - Target font categories to substitute with system fonts
    • Method Detail

      • getFontCategories

        public int getFontCategories()

        Gets or sets substitution font categories that should be substituted with system fonts.

        Returns:
        SubstitutionFontCategories element
        See Also:
        SubstitutionFontCategories
      • setFontCategories

        public void setFontCategories(int value)

        Gets or sets substitution font categories that should be substituted with system fonts.

        Parameters:
        value - SubstitutionFontCategories element
        See Also:
        SubstitutionFontCategories
      • getDefaultFont

        public Font getDefaultFont()

        Gets or sets default substitution font. The font is used when no other valid substitution were found but initial font belongs to target substitution category (FontCategories).

        Returns:
        Font object
      • setDefaultFont

        public void setDefaultFont(Font value)

        Gets or sets default substitution font. The font is used when no other valid substitution were found but initial font belongs to target substitution category (FontCategories).

        Parameters:
        value - Font object