public static final class CustomFontSubstitutionBase.OriginalFontSpecification extends Object
Represents original font specification.
Provides info related to original font such as , flag. Also provides flag that helps to check is the substitution will anyway happen with the font and the user may override the default substitution logic.
Constructor and Description |
---|
OriginalFontSpecification(String originalFontName,
boolean isEmbedded,
boolean isUnavoidable)
Initializes new OriginalFontSpecification object.
|
Modifier and Type | Method and Description |
---|---|
String |
getOriginalFontName()
Gets original font name.
|
boolean |
isEmbedded()
Gets a value that indicates whether the font is embedded.
|
boolean |
isSubstitutionUnavoidable()
Gets a value that indicates that the substitution is unavoidable.
|
public OriginalFontSpecification(String originalFontName, boolean isEmbedded, boolean isUnavoidable)
Initializes new OriginalFontSpecification object.
originalFontName
- String objectisEmbedded
- boolean valueisUnavoidable
- boolean valuepublic String getOriginalFontName()
Gets original font name.
public boolean isEmbedded()
Gets a value that indicates whether the font is embedded.
public boolean isSubstitutionUnavoidable()
Gets a value that indicates that the substitution is unavoidable.
Returns true in case substitution was requested because of absence of the original font or in case original font cannot be used in context of some task. In case user ignores the flag and doesn't substitute the font - default font substitution procedure is performed. But it provides opportunity for the user to alternate standard font substitution procedure and set better font to the system. Returns false in case original font is present, valid, but it is allowed for the user to substitute it.