public interface TextRenderer
Modifier and Type | Method and Description |
---|---|
float |
drawText(java.awt.Font font,
java.lang.String text,
float[] loc,
float emsize)
Renders text with a given font at a provided baseline location.
|
java.awt.geom.Rectangle2D |
getTextBounds(java.awt.Font font,
java.lang.String text,
float emsize)
Bounding rectangle.
|
java.awt.geom.Rectangle2D getTextBounds(java.awt.Font font, java.lang.String text, float emsize)
font
- font used for sizingtext
- text to boundemsize
- 'em' unit sizefloat drawText(java.awt.Font font, java.lang.String text, float[] loc, float emsize)
font
- font to usetext
- text to drawloc
- baseline location to start drawingemsize
- size of an 'em' unit