|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.niftygui.RenderFontJme
public class RenderFontJme
Constructor Summary | |
---|---|
RenderFontJme(java.lang.String name,
NiftyJmeDisplay display)
Initialize the font. |
Method Summary | |
---|---|
BitmapText |
createText()
|
void |
dispose()
|
int |
getCharacterAdvance(char currentCharacter,
char nextCharacter,
float size)
Return the width of the given character including kerning information. |
int |
getHeight()
get font height. |
BitmapText |
getText()
|
int |
getWidth(java.lang.String str)
get font width of the given string. |
int |
getWidth(java.lang.String str,
float size)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RenderFontJme(java.lang.String name, NiftyJmeDisplay display)
name
- font filenameMethod Detail |
---|
public BitmapText createText()
public BitmapText getText()
public int getHeight()
getHeight
in interface de.lessvoid.nifty.spi.render.RenderFont
public int getWidth(java.lang.String str)
getWidth
in interface de.lessvoid.nifty.spi.render.RenderFont
str
- text
public int getWidth(java.lang.String str, float size)
getWidth
in interface de.lessvoid.nifty.spi.render.RenderFont
public int getCharacterAdvance(char currentCharacter, char nextCharacter, float size)
getCharacterAdvance
in interface de.lessvoid.nifty.spi.render.RenderFont
currentCharacter
- current characternextCharacter
- next charactersize
- font size
public void dispose()
dispose
in interface de.lessvoid.nifty.spi.render.RenderFont
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |