com.jme3.font
Class BitmapCharacterSet
java.lang.Object
com.jme3.font.BitmapCharacterSet
- All Implemented Interfaces:
- Savable
public class BitmapCharacterSet
- extends java.lang.Object
- implements Savable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BitmapCharacterSet
public BitmapCharacterSet()
write
public void write(JmeExporter ex)
throws java.io.IOException
- Specified by:
write
in interface Savable
- Throws:
java.io.IOException
writeCharset
protected void writeCharset(OutputCapsule oc,
int style,
IntMap<BitmapCharacter> charset)
throws java.io.IOException
- Throws:
java.io.IOException
read
public void read(JmeImporter im)
throws java.io.IOException
- Specified by:
read
in interface Savable
- Throws:
java.io.IOException
getCharacter
public BitmapCharacter getCharacter(int index)
getCharacter
public BitmapCharacter getCharacter(int index,
int style)
addCharacter
public void addCharacter(int index,
BitmapCharacter ch)
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
public void merge(BitmapCharacterSet styleSet)
- Merge two fonts.
If two font have the same style, merge will fail.
- Parameters:
styleSet
- Style must be assigned to this.
setStyle
public void setStyle(int style)