org.pentaho.reporting.libraries.fonts.text.font

Class StaticFontSizeProducer

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

Constructor Summary
StaticFontSizeProducer(FontMetrics fontMetrics)
StaticFontSizeProducer(int maxWidth, int maxHeight, int baseLine)
Method Summary
Objectclone()
GlyphMetricsgetCharacterSize(int codePoint, GlyphMetrics dimension)

Constructor Detail

StaticFontSizeProducer

public StaticFontSizeProducer(FontMetrics fontMetrics)

StaticFontSizeProducer

public StaticFontSizeProducer(int maxWidth, int maxHeight, int baseLine)

Method Detail

clone

public Object clone()

getCharacterSize

public GlyphMetrics getCharacterSize(int codePoint, GlyphMetrics dimension)