public static interface MonospaceFont.FontRenderListener
Modifier and Type | Method and Description |
---|---|
void |
postRenderChar(Graphics g,
char c,
float charRenderX,
float charRenderY,
float charRenderWidth,
float charRenderHeight)
Called after rendering a character to screen.
|
boolean |
preRenderChar(Graphics g,
char c,
float charRenderX,
float charRenderY,
float charRenderWidth,
float charRenderHeight)
Called before rendering a character to screen
|
boolean preRenderChar(Graphics g, char c, float charRenderX, float charRenderY, float charRenderWidth, float charRenderHeight)
g
- The Graphics
contextc
- The text character to be renderedcharRenderX
- The x coordinate the character will render atcharRenderY
- The y coordinate the character will render atcharRenderWidth
- The frame width of the charactercharRenderHeight
- The frame height of the charactervoid postRenderChar(Graphics g, char c, float charRenderX, float charRenderY, float charRenderWidth, float charRenderHeight)
preRenderChar(Graphics, char, float, float, float, float)
returns false, this method will still be called.g
- The Graphics
contextc
- The text character renderedcharRenderX
- The x coordinate the character was rendered atcharRenderY
- The y coordinate the character was rendered atcharRenderWidth
- The frame width of the charactercharRenderHeight
- The frame height of the character