SystemFontsSubstitution

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

public final class SystemFontsSubstitution extends FontSubstitution

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

Constructors

ConstructorDescription
SystemFontsSubstitution(int fontCategories)Initializes a new instance of SystemFontsSubstitution class.

Methods

MethodDescription
getFontCategories()Gets or sets substitution font categories that should be substituted with system fonts.
setFontCategories(int value)Gets or sets substitution font categories that should be substituted with system fonts.
getDefaultFont()Gets or sets default substitution font.
setDefaultFont(Font value)Gets or sets default substitution font.

SystemFontsSubstitution(int fontCategories)

public SystemFontsSubstitution(int fontCategories)

Initializes a new instance of SystemFontsSubstitution class.

Parameters:

ParameterTypeDescription
fontCategoriesintTarget font categories to substitute with system fonts

getFontCategories()

public int getFontCategories()

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

Returns: int - SubstitutionFontCategories element

setFontCategories(int value)

public void setFontCategories(int value)

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

Parameters:

ParameterTypeDescription
valueintSubstitutionFontCategories element

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 - Font object

setDefaultFont(Font value)

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:

ParameterTypeDescription
valueFontFont object