crystalspace.jbind.interfaces.ivideo.fontserv
Interface iFontServer

All Superinterfaces:
iBase, iPointer
All Known Implementing Classes:
csFontServer

public interface iFontServer
extends iBase

A font server interface. Font server can load fonts and create iFont objects. In fact user does not care whenever fonts are built-in the font server or are on disk; thus some font servers may contain the fonts hardcoded; in this case the font path is really a identifier.

Author:
Java wrapper - Quentin Anciaux, c++ version - http://crystal.sourceforge.net/docs/online/devapi/structiFontServer.php

Method Summary
 iFont getFont(int iIndex)
          Get Nth loaded font or 0.
 int getFontCount()
          Get number of loaded fonts.
 iFont loadFont(java.lang.String filename)
          Load a font by name.
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Method Detail

getFont

public iFont getFont(int iIndex)
Get Nth loaded font or 0. You can query all loaded fonts with this method, by looping through all indices starting from 0 until you get 0. Note that the returned font is NOT IncRef'd: do it yourself if you store the pointer for long-term use. Implemented in csDefaultFontServer, csFontServerMultiplexor, and csFreeType2Server.

Parameters:
iIndex -
Returns:

getFontCount

public int getFontCount()
Get number of loaded fonts. Implemented in csDefaultFontServer, csFontServerMultiplexor, and csFreeType2Server.

Returns:

loadFont

public iFont loadFont(java.lang.String filename)
Load a font by name. Returns a new iFont object or 0 on failure. Implemented in csDefaultFontServer, csFontServerMultiplexor, and csFreeType2Server.

Parameters:
filename -
Returns: