Package org.docx4j.fonts.fop.fonts
Interface FontEventListener
public interface FontEventListener
Event listener interface for font-related events.
-
Method Summary
Modifier and Type Method Description voidfontLoadingErrorAtAutoDetection(java.lang.Object source, java.lang.String fontURL, java.lang.Exception e)An error occurred while loading a font for auto-detection.voidfontSubstituted(java.lang.Object source, FontTriplet requested, FontTriplet effective)Notifies about a font being substituted as the requested one isn't available.voidglyphNotAvailable(java.lang.Object source, char ch, java.lang.String fontName)A glyph has been requested that is not available in the font.
-
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
-
fontLoadingErrorAtAutoDetection
void fontLoadingErrorAtAutoDetection(java.lang.Object source, java.lang.String fontURL, java.lang.Exception e)An error occurred while loading a font for auto-detection.- Parameters:
source- the event sourcefontURL- the font URLe- the original exception
-
glyphNotAvailable
void glyphNotAvailable(java.lang.Object source, char ch, java.lang.String fontName)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
-