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
ConstructorsConstructorDescriptionFontEventAdapter(EventBroadcaster broadcaster) Creates a new FontEventAdapter. -
Method Summary
Modifier and TypeMethodDescriptionvoidfontDirectoryNotFound(Object source, String dir) An error occurred trying to find the font directory specified in the config file.voidfontFeatureNotSuppprted(Object source, String feature, String onlySupportedIn) voidfontLoadingErrorAtAutoDetection(Object source, String fontURL, Exception e) An error occurred while loading a font for auto-detection.voidfontSubstituted(Object source, FontTriplet requested, FontTriplet effective) Notifies about a font being substituted as the requested one isn't available.voidglyphNotAvailable(Object source, char ch, String fontName) A glyph has been requested that is not available in the font.voidsvgTextStrokedAsShapes(Object source, String fontFamily) The SVG text will be stroked as shapes.
-
Constructor Details
-
FontEventAdapter
public FontEventAdapter(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:
fontSubstitutedin 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:
fontLoadingErrorAtAutoDetectionin 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:
glyphNotAvailablein 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:
fontDirectoryNotFoundin interfaceFontEventListener- Parameters:
source- the event sourcedir- the directory in the config file
-
svgTextStrokedAsShapes
The SVG text will be stroked as shapes.- Specified by:
svgTextStrokedAsShapesin interfaceFontEventListener- Parameters:
source- the event sourcefontFamily- the family name of the font that is being stroked
-
fontFeatureNotSuppprted
-