public final class SystemFontsSubstitution extends FontSubstitution
Represents a class for font substitution strategy that substitutes fonts with system fonts.
Constructor and Description |
---|
SystemFontsSubstitution(int fontCategories)
Initializes a new instance of
SystemFontsSubstitution class. |
Modifier and Type | Method and Description |
---|---|
Font |
getDefaultFont()
Gets or sets default substitution font.
|
int |
getFontCategories()
Gets or sets substitution font categories that should be substituted with system fonts.
|
void |
setDefaultFont(Font value)
Gets or sets default substitution font.
|
void |
setFontCategories(int value)
Gets or sets substitution font categories that should be substituted with system fonts.
|
getSubstitutedUnicode, getSubstitutionFontDefinition, setSubstitutionFontDefinition
public SystemFontsSubstitution(int fontCategories)
Initializes a new instance of SystemFontsSubstitution
class.
fontCategories
- Target font categories to substitute with system fontspublic int getFontCategories()
Gets or sets substitution font categories that should be substituted with system fonts.
SubstitutionFontCategories
public void setFontCategories(int value)
Gets or sets substitution font categories that should be substituted with system fonts.
value
- SubstitutionFontCategories elementSubstitutionFontCategories
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
).
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
).
value
- Font object