Package com.jme3.niftygui
Class RenderFontJme
java.lang.Object
com.jme3.niftygui.RenderFontJme
- All Implemented Interfaces:
- de.lessvoid.nifty.spi.render.RenderFont
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispose()intgetCharacterAdvance(char currentCharacter, char nextCharacter, float size) Return the width of the given character including kerning information.getFont()intget font height.getText()intget font width of the given string.int
- 
Constructor Details- 
RenderFontJmeInitialize the font.- Parameters:
- name- font filename
- display- (not null)
 
 
- 
- 
Method Details- 
createText
- 
getFont
- 
getText
- 
getHeightpublic int getHeight()get font height.- Specified by:
- getHeightin interface- de.lessvoid.nifty.spi.render.RenderFont
- Returns:
- height
 
- 
getWidthget font width of the given string.- Specified by:
- getWidthin interface- de.lessvoid.nifty.spi.render.RenderFont
- Parameters:
- str- text
- Returns:
- width of the given text for the current font
 
- 
getWidth- Specified by:
- getWidthin interface- de.lessvoid.nifty.spi.render.RenderFont
 
- 
getCharacterAdvancepublic int getCharacterAdvance(char currentCharacter, char nextCharacter, float size) Return the width of the given character including kerning information.- Specified by:
- getCharacterAdvancein interface- de.lessvoid.nifty.spi.render.RenderFont
- Parameters:
- currentCharacter- current character
- nextCharacter- next character
- size- font size
- Returns:
- width of the character or null when no information for the character is available
 
- 
disposepublic void dispose()- Specified by:
- disposein interface- de.lessvoid.nifty.spi.render.RenderFont
 
 
-