org.pentaho.reporting.libraries.fonts.text.font
Class StaticFontSizeProducer
java.lang.Object
org.pentaho.reporting.libraries.fonts.text.font.StaticFontSizeProducer
- All Implemented Interfaces:
- Cloneable, ClassificationProducer, FontSizeProducer
public class StaticFontSizeProducer
- extends Object
- implements FontSizeProducer
Creates a monospaced font from any given font by always returning the maximum
character width and height for that font. Grapheme clusters have no effect on
that font size producer.
- Author:
- Thomas Morgner
StaticFontSizeProducer
public StaticFontSizeProducer(FontMetrics fontMetrics)
StaticFontSizeProducer
public StaticFontSizeProducer(int maxWidth,
int maxHeight,
int baseLine)
getCharacterSize
public GlyphMetrics getCharacterSize(int codePoint,
GlyphMetrics dimension)
- Specified by:
getCharacterSize
in interface FontSizeProducer
clone
public Object clone()
throws CloneNotSupportedException
- Specified by:
clone
in interface ClassificationProducer
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException