Package com.jme3.font

Class BitmapCharacterSet

java.lang.Object
com.jme3.font.BitmapCharacterSet
All Implemented Interfaces:
Savable

public class BitmapCharacterSet extends Object implements Savable
  • Constructor Details

    • BitmapCharacterSet

      public BitmapCharacterSet()
  • Method Details

    • write

      public void write(JmeExporter ex) throws IOException
      Specified by:
      write in interface Savable
      Throws:
      IOException
    • writeCharset

      protected void writeCharset(OutputCapsule oc, int style, IntMap<BitmapCharacter> charset) throws IOException
      Throws:
      IOException
    • read

      public void read(JmeImporter im) throws IOException
      Specified by:
      read in interface Savable
      Throws:
      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. author: Yonghoon
    • setStyle

      public void setStyle(int style)