Package com.jme3.font
Class BitmapCharacterSet
java.lang.Object
com.jme3.font.BitmapCharacterSet
- All Implemented Interfaces:
Savable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCharacter
(int index, BitmapCharacter ch) int
getBase()
getCharacter
(int index) getCharacter
(int index, int style) int
int
int
int
getWidth()
void
merge
(BitmapCharacterSet styleSet) Merge two fonts.void
read
(JmeImporter im) void
setBase
(int base) void
setHeight
(int height) void
setLineHeight
(int lineHeight) void
setRenderedSize
(int renderedSize) void
setStyle
(int style) void
setWidth
(int width) void
write
(JmeExporter ex) protected void
writeCharset
(OutputCapsule oc, int style, IntMap<BitmapCharacter> charset)
-
Constructor Details
-
BitmapCharacterSet
public BitmapCharacterSet()
-
-
Method Details
-
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
writeCharset
protected void writeCharset(OutputCapsule oc, int style, IntMap<BitmapCharacter> charset) throws IOException - Throws:
IOException
-
read
- Specified by:
read
in 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)
-