Base class for font classes
Code point that is used if no code point for a specific character has
Used to identify whether a font has been used (a character map operation
is used as the trigger). This could just as well be a boolean but is a
long out of statistical interest.
An optional event listener that receives events such as missing glyphs etc.
Get the encoding of the font.
Map a Unicode character to a code point in the font.
c character to map
- the mapped character
public abstract char mapChar(char c);
Used for keeping track of character mapping operations in order to determine if a font
was used at all or not.
Indicates whether this font had to do any character mapping operations. If that was
not the case, it's an indication that the font has never actually been used.
- true if the font had to do any character mapping operations
Determines whether this font contains a particular character/glyph.
c character to check
- True if the character is supported, Falso otherwise
public abstract boolean hasChar(char c);
Determines whether the font is a multibyte font.
- True if it is multibyte
Sets the font event listener that can be used to receive events about particular events
in this class.
listener the font event listener
Provide proper warning if a glyph is not available.
the character which is missing.
log.warn("Many requested glyphs are not available in font "
log.warn("Glyph " + (int) c + " (0x"