Package org.apache.fop.fonts
Interface FontEventProducer
public interface FontEventProducer
Event producer for fonts-related events.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classProvider class for the event producer. -
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) A method to warn the user that the feature they are trying to use is not supported with either the renderer or other setting.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.
-
Method Details
-
fontSubstituted
Notifies about a font being substituted as the requested one isn't available.- Parameters:
source- the event sourcerequested- the requested font tripleteffective- the effective font triplet- Event severity level:
- WARN
-
fontLoadingErrorAtAutoDetection
An error occurred while loading a font for auto-detection.- Parameters:
source- the event sourcefontURL- the font URLe- the original exception- Event severity level:
- WARN
-
glyphNotAvailable
A glyph has been requested that is not available in the font.- Parameters:
source- the event sourcech- the character for which the glyph isn't availablefontName- the name of the font- Event severity level:
- WARN
-
fontDirectoryNotFound
An error occurred trying to find the font directory specified in the config file.- Parameters:
source- the event sourcedir- the directory in the config file- Event severity level:
- WARN
-
svgTextStrokedAsShapes
The SVG text will be stroked as shapes.- Parameters:
source- the event sourcefontFamily- the family name of the font that is being stroked- Event severity level:
- WARN
-
fontFeatureNotSuppprted
A method to warn the user that the feature they are trying to use is not supported with either the renderer or other setting.- Parameters:
source-feature- The feature that has caused the not supported issueonlySupportedIn- The renderer / setting that this feature works with.- Event severity level:
- ERROR
-