org.apache.fop.render.java2d
Class SystemFontMetricsMapper
- FontMetrics, FontMetricsMapper
public class SystemFontMetricsMapper
This class implements org.apache.fop.layout.FontMetrics and
is added to the hash table in FontInfo. It deferes the
actual calculation of the metrics to
Java2DFontMetrics. It only keeps the java name and
style as member varibles
SystemFontMetricsMapper
public SystemFontMetricsMapper(String family,
int style,
Graphics2D graphics)
Constructs a new Font-metrics.
family
- the family name of the font (java value)style
- the java type style value of the fontgraphics
- a Graphics2D object - this is needed so
that we can get an instance of java.awt.FontMetrics
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.