public class NewFontEncounteredEvent extends EventObject
Constructor and Description |
---|
NewFontEncounteredEvent(Object source,
String fontName,
int fontStyle,
FontEmbedType fontEmbedType,
boolean fontEmbedOverrideRestriction) |
Modifier and Type | Method and Description |
---|---|
FontEmbedType |
getFontEmbedType()
Returns how the font is set to be embedded.
|
String |
getFontName()
Returns the name of the font.
|
int |
getFontStyle()
Returns the font style.
|
boolean |
isFontEmbedOverrideRestriction()
Returns whether the font-embedding restrictions (of the font licenses) have
been set to be ignored.
|
void |
setFontEmbedOverrideRestriction(boolean fontEmbedOverrideRestriction)
Specifies whether font-embedding restrictions (of the font licenses) need
to be ignored.
|
void |
setFontEmbedType(FontEmbedType fontEmbedType)
Specifies how the font needs to be embedded.
|
getSource, toString
public NewFontEncounteredEvent(Object source, String fontName, int fontStyle, FontEmbedType fontEmbedType, boolean fontEmbedOverrideRestriction)
public FontEmbedType getFontEmbedType()
public void setFontEmbedType(FontEmbedType fontEmbedType)
fontEmbedType
- how the font needs to be embeddingpublic String getFontName()
public int getFontStyle()
constant specifying the font style
public boolean isFontEmbedOverrideRestriction()
public void setFontEmbedOverrideRestriction(boolean fontEmbedOverrideRestriction)
fontEmbedOverrideRestriction
- true if the the restrictions can be ignored; false if otherwise