com.jmex.angelfont
Class BitmapFont
java.lang.Object
com.jmex.angelfont.BitmapFont
public class BitmapFont
- extends java.lang.Object
Represents a font within jME that is generated with the AngelCode Bitmap Font
Generator
- Author:
- dhdd, Andreas Grabner, Momoko_Fan (enhancements), Core_Dump, dhdd (\n for new line feature)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BitmapFont
public BitmapFont()
updateText
public float updateText(StringBlock block,
QuadList target,
boolean rightToLeft)
- The method updates a
BitmapText and restricts it to a rectangle,
given in StringBlock.textBox
- Parameters:
block - the StringBlock that holds the necessary information
for the update of the texttarget - the QuadList holds all the FontQuads that each
represent a characterrightToLeft - indicates weather the text should be written from right to
left
- Returns:
updateTextRect
public void updateTextRect(StringBlock block,
QuadList target)
- The method updates a
BitmapText and restricts it to a rectangle,
given in StringBlock.textBox
- Parameters:
block - the StringBlock that holds the necessary information
for the update of the texttarget - the QuadList holds all the FontQuads that each
represent a character
getLineHeight
public float getLineHeight(StringBlock sb)
- Gets the line height of a StringBlock.
- Parameters:
sb -
- Returns:
setCharSet
public void setCharSet(BitmapCharacterSet charSet)
getCharSet
public BitmapCharacterSet getCharSet()
getFontTexture
public Texture getFontTexture()
setFontTexture
public void setFontTexture(Texture fontTexture)
Copyright 2003-2009 jMonkeyEngine