Package org.apache.fop.fonts
Class FontEventAdapter
java.lang.Object
org.apache.fop.fonts.FontEventAdapter
- All Implemented Interfaces:
FontEventListener
Event listener interface for font-related events. This interface extends FontEventListener
and EventProducer for integration into FOP's event subsystem.
-
Constructor Summary
ConstructorDescriptionFontEventAdapter
(org.apache.fop.events.EventBroadcaster broadcaster) Creates a new FontEventAdapter. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Constructor Details
-
FontEventAdapter
public FontEventAdapter(org.apache.fop.events.EventBroadcaster broadcaster) Creates a new FontEventAdapter.- Parameters:
broadcaster
- the event broadcaster to send the generated events to
-
-
Method Details
-
fontSubstituted
Notifies about a font being substituted as the requested one isn't available.- Specified by:
fontSubstituted
in interfaceFontEventListener
- Parameters:
source
- the event sourcerequested
- the requested font tripleteffective
- the effective font triplet
-
fontLoadingErrorAtAutoDetection
An error occurred while loading a font for auto-detection.- Specified by:
fontLoadingErrorAtAutoDetection
in interfaceFontEventListener
- Parameters:
source
- the event sourcefontURL
- the font URLe
- the original exception
-
glyphNotAvailable
A glyph has been requested that is not available in the font.- Specified by:
glyphNotAvailable
in interfaceFontEventListener
- Parameters:
source
- the event sourcech
- the character for which the glyph isn't availablefontName
- the name of the font
-
fontDirectoryNotFound
An error occurred trying to find the font directory specified in the config file.- Specified by:
fontDirectoryNotFound
in interfaceFontEventListener
- Parameters:
source
- the event sourcedir
- the directory in the config file
-
svgTextStrokedAsShapes
The SVG text will be stroked as shapes.- Specified by:
svgTextStrokedAsShapes
in interfaceFontEventListener
- Parameters:
source
- the event sourcefontFamily
- the family name of the font that is being stroked
-
fontFeatureNotSuppprted
-