T
- public class MathMLFontRenderer<T> extends FontRenderer<T,MathMLFontStyle<T>>
Constructor and Description |
---|
MathMLFontRenderer() |
Modifier and Type | Method and Description |
---|---|
Rectangle |
getSize(String string,
MathMLFontStyle<T> style)
Calculate the bounding box of the rendered text with the given style.
|
static void |
main(String[] args) |
void |
renderText(ImageRenderer<T,?> renderer,
String text,
int x,
int y,
MathMLFontStyle<T> sty)
Render the given text string to the image starting at (x, y) with the
given style.
|
getBounds, getBounds, renderText
public MathMLFontRenderer()
public void renderText(ImageRenderer<T,?> renderer, String text, int x, int y, MathMLFontStyle<T> sty)
FontRenderer
renderText
in class FontRenderer<T,MathMLFontStyle<T>>
renderer
- the renderertext
- the textx
- the x-ordinatey
- the y-ordinatesty
- the stylepublic Rectangle getSize(String string, MathMLFontStyle<T> style)
FontRenderer
getSize
in class FontRenderer<T,MathMLFontStyle<T>>
string
- the textstyle
- the style