| fop 0.94 | |
| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.fop.fonts.Typefaceorg.apache.fop.render.java2d.FontMetricsMapperConstructor Summary | |
| |
Method Summary | |
int |
|
int |
|
int |
|
String | |
java.awt.Font |
|
String | |
FontType | |
Map | |
int |
|
int |
|
int[] | |
int |
|
boolean |
|
boolean | |
char |
|
Methods inherited from class org.apache.fop.fonts.Typeface | |
getEncoding, getMaxAscent, hasChar, isMultiByte, mapChar | |
public FontMetricsMapper(String family,
int style,
Graphics2D graphics)Constructs a new Font-metrics.
- Parameters:
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
public int getAscender(int size)
- Specified by:
- getAscender in interface FontMetrics
- See Also:
FontMetrics.getAscender(int)
public int getCapHeight(int size)
- Specified by:
- getCapHeight in interface FontMetrics
- See Also:
FontMetrics.getCapHeight(int)
public int getDescender(int size)
- Specified by:
- getDescender in interface FontMetrics
- See Also:
FontMetrics.getDescender(int)
public String getEncoding()
- Overrides:
- getEncoding in interface Typeface
- See Also:
Typeface.getEncoding()
public java.awt.Font getFont(int size)
Gets a Font instance of the Font that this FontMetrics describes in the desired size.
- Parameters:
size- font size
- Returns:
- font with the desired characeristics.
public String getFontName()
- Specified by:
- getFontName in interface FontMetrics
- See Also:
FontMetrics.getFontName()
public FontType getFontType()
- Specified by:
- getFontType in interface FontMetrics
- See Also:
FontMetrics.getFontType()
public Map getKerningInfo()
- Specified by:
- getKerningInfo in interface FontMetrics
- See Also:
FontMetrics.getKerningInfo()
public int getMaxAscent(int size)
- Specified by:
- getMaxAscent in interface FontMetrics
- Overrides:
- getMaxAscent in interface Typeface
- See Also:
FontMetrics.getMaxAscent(int)
public int getWidth(int i,
int size)
- Specified by:
- getWidth in interface FontMetrics
- See Also:
FontMetrics.getWidth(int,int)
public int[] getWidths()
- Specified by:
- getWidths in interface FontMetrics
- See Also:
FontMetrics.getWidths()
public int getXHeight(int size)
- Specified by:
- getXHeight in interface FontMetrics
- See Also:
FontMetrics.getXHeight(int)
public boolean hasKerningInfo()
- Specified by:
- hasKerningInfo in interface FontMetrics
- See Also:
FontMetrics.hasKerningInfo()
| fop 0.94 |