fop 1.0

org.apache.fop.fonts
Interface FontEventProducer

All Superinterfaces:
EventProducer

public interface FontEventProducer
extends EventProducer

Event producer for fonts-related events.


Nested Class Summary
static class FontEventProducer.Provider
          Provider class for the event producer.
 
Method Summary
 void fontLoadingErrorAtAutoDetection(java.lang.Object source, java.lang.String fontURL, java.lang.Exception e)
          An error occurred while loading a font for auto-detection.
 void fontSubstituted(java.lang.Object source, FontTriplet requested, FontTriplet effective)
          Notifies about a font being substituted as the requested one isn't available.
 void glyphNotAvailable(java.lang.Object source, char ch, java.lang.String fontName)
          A glyph has been requested that is not available in the font.
 

Method Detail

fontSubstituted

void fontSubstituted(java.lang.Object source,
                     FontTriplet requested,
                     FontTriplet effective)
Notifies about a font being substituted as the requested one isn't available.

Parameters:
source - the event source
requested - the requested font triplet
effective - the effective font triplet
Event severity level:
WARN

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 source
fontURL - the font URL
e - the original exception
Event severity level:
WARN

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 source
ch - the character for which the glyph isn't available
fontName - the name of the font
Event severity level:
WARN

fop 1.0

Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.