Package com.jme3.font
Class BitmapCharacterSet
java.lang.Object
com.jme3.font.BitmapCharacterSet
- All Implemented Interfaces:
Savable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacter(int index, BitmapCharacter ch) intgetBase()getCharacter(int index) getCharacter(int index, int style) intintintintgetWidth()voidmerge(BitmapCharacterSet styleSet) Merge two fonts.voidread(JmeImporter im) voidsetBase(int base) voidsetHeight(int height) voidsetLineHeight(int lineHeight) voidsetRenderedSize(int renderedSize) voidsetStyle(int style) voidsetWidth(int width) voidwrite(JmeExporter ex) protected voidwriteCharset(OutputCapsule oc, int style, IntMap<BitmapCharacter> charset)
-
Constructor Details
-
BitmapCharacterSet
public BitmapCharacterSet()
-
-
Method Details
-
write
- Specified by:
writein interfaceSavable- Throws:
IOException
-
writeCharset
protected void writeCharset(OutputCapsule oc, int style, IntMap<BitmapCharacter> charset) throws IOException - Throws:
IOException
-
read
- Specified by:
readin interfaceSavable- Throws:
IOException
-
getCharacter
-
getCharacter
-
addCharacter
-
getLineHeight
public int getLineHeight() -
setLineHeight
public void setLineHeight(int lineHeight) -
getBase
public int getBase() -
setBase
public void setBase(int base) -
getRenderedSize
public int getRenderedSize() -
setRenderedSize
public void setRenderedSize(int renderedSize) -
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
getHeight
public int getHeight() -
setHeight
public void setHeight(int height) -
merge
Merge two fonts. If two font have the same style, merge will fail.- Parameters:
styleSet- Style must be assigned to this. author: Yonghoon
-
setStyle
public void setStyle(int style)
-