SystemFontsSubstitution

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

public final class SystemFontsSubstitution extends FontSubstitution

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

Constructors

ConstructorDescription
SystemFontsSubstitutionInitializes a new instance of {@code SystemFontsSubstitution} class.

Methods

MethodDescription
getDefaultFontGets or sets default substitution font. The font is used when no other valid substitution were found but initial font belongs to target substitution category ({@code FontCategories}).
getFontCategoriesGets or sets substitution font categories that should be substituted with system fonts.
setDefaultFontGets or sets default substitution font. The font is used when no other valid substitution were found but initial font belongs to target substitution category ({@code FontCategories}).
setFontCategoriesGets or sets substitution font categories that should be substituted with system fonts.

SystemFontsSubstitution

public SystemFontsSubstitution(int fontCategories)

Initializes a new instance of {@code SystemFontsSubstitution} class.

Parameters:

ParameterTypeDescription
fontCategoriesTarget font categories to substitute with system fonts

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 ({@code FontCategories}).

Returns: Font object

getFontCategories

public int getFontCategories()

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

Returns: SubstitutionFontCategories element @see SubstitutionFontCategories

setDefaultFont

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 ({@code FontCategories}).

setFontCategories

public void setFontCategories(int value)

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

Parameters:

ParameterTypeDescription
valueSubstitutionFontCategories element @see SubstitutionFontCategories