FontSubstRule

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IFontSubstRule

public class FontSubstRule implements IFontSubstRule

Represents font subtituition information

Constructors

ConstructorDescription
FontSubstRule(IFontData sourceFont, IFontData destFont)Creates new instance.
FontSubstRule(IFontData sourceFont, IFontData destFont, int fontSubstRule)Creates new instance.

Methods

MethodDescription
getSourceFont()Font to substitute.
getDestFont()Font to use for substitution.
getReplaceFontCondition()Rule to apply for substitution.

FontSubstRule(IFontData sourceFont, IFontData destFont)

public FontSubstRule(IFontData sourceFont, IFontData destFont)

Creates new instance.

Parameters:

ParameterTypeDescription
sourceFontIFontDataSource font.
destFontIFontDataDestination font.

FontSubstRule(IFontData sourceFont, IFontData destFont, int fontSubstRule)

public FontSubstRule(IFontData sourceFont, IFontData destFont, int fontSubstRule)

Creates new instance.

Parameters:

ParameterTypeDescription
sourceFontIFontDataSource font.
destFontIFontDataDestination font.
fontSubstRuleintFont subst rule.

getSourceFont()

public final IFontData getSourceFont()

Font to substitute. Read-only IFontData.

Returns: IFontData

getDestFont()

public final IFontData getDestFont()

Font to use for substitution. Read-only IFontData.

Returns: IFontData

getReplaceFontCondition()

public final int getReplaceFontCondition()

Rule to apply for substitution. Read-only FontSubstCondition.

Returns: int