com.jmex.angelfont
Class BitmapFontLoader

java.lang.Object
  extended by com.jmex.angelfont.BitmapFontLoader

public class BitmapFontLoader
extends java.lang.Object

A Loader class for BitmapFont objects.

Author:
dhdd, Andreas Grabner, Momoko_Fan (enhancements)

Constructor Summary
BitmapFontLoader()
           
 
Method Summary
static BitmapFont load(java.net.URL fontFile, java.net.URL textureFile)
          loads the BitmapFont defined by the two provided URLs
static BitmapFont loadDefaultFont()
          Loads the jme default BitmapFont
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitmapFontLoader

public BitmapFontLoader()
Method Detail

loadDefaultFont

public static BitmapFont loadDefaultFont()
Loads the jme default BitmapFont

Returns:
the BitmapFont that is the jme default

load

public static BitmapFont load(java.net.URL fontFile,
                              java.net.URL textureFile)
                       throws java.io.IOException
loads the BitmapFont defined by the two provided URLs

Parameters:
fontFile - the URL to the .fnt file of the BitmapFont
textureFile - the URL to the texture file of the BitmapFont
Returns:
the BitmapFont defined by the two provided URLs
Throws:
java.io.IOException - if one of the provided URLs is null


Copyright 2003-2009 jMonkeyEngine