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
Constructor | Description |
---|---|
SystemFontsSubstitution(int fontCategories) | Initializes a new instance of SystemFontsSubstitution class. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
fontCategories | int | Target 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:
Parameter | Type | Description |
---|---|---|
value | int | SubstitutionFontCategories 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:
Parameter | Type | Description |
---|---|---|
value | Font | Font object |