public class FontEventAdapter extends Object implements FontEventListener
| Constructor and Description |
|---|
FontEventAdapter(EventBroadcaster broadcaster)
Creates a new FontEventAdapter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fontDirectoryNotFound(Object source,
String dir)
An error occurred trying to find the font directory specified in the config file.
|
void |
fontFeatureNotSuppprted(Object source,
String feature,
String onlySupportedIn) |
void |
fontLoadingErrorAtAutoDetection(Object source,
String fontURL,
Exception e)
An error occurred while loading a font for auto-detection.
|
void |
fontSubstituted(Object source,
FontTriplet requested,
FontTriplet effective)
Notifies about a font being substituted as the requested one isn't available.
|
void |
glyphNotAvailable(Object source,
char ch,
String fontName)
A glyph has been requested that is not available in the font.
|
void |
svgTextStrokedAsShapes(Object source,
String fontFamily)
The SVG text will be stroked as shapes.
|
public FontEventAdapter(EventBroadcaster broadcaster)
broadcaster - the event broadcaster to send the generated events topublic void fontSubstituted(Object source, FontTriplet requested, FontTriplet effective)
fontSubstituted in interface FontEventListenersource - the event sourcerequested - the requested font tripleteffective - the effective font tripletpublic void fontLoadingErrorAtAutoDetection(Object source, String fontURL, Exception e)
fontLoadingErrorAtAutoDetection in interface FontEventListenersource - the event sourcefontURL - the font URLe - the original exceptionpublic void glyphNotAvailable(Object source, char ch, String fontName)
glyphNotAvailable in interface FontEventListenersource - the event sourcech - the character for which the glyph isn't availablefontName - the name of the fontpublic void fontDirectoryNotFound(Object source, String dir)
fontDirectoryNotFound in interface FontEventListenersource - the event sourcedir - the directory in the config filepublic void svgTextStrokedAsShapes(Object source, String fontFamily)
svgTextStrokedAsShapes in interface FontEventListenersource - the event sourcefontFamily - the family name of the font that is being strokedCopyright © 2025 Apache Software Foundation. All rights reserved.