Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iFontServer Struct Reference

A font server interface. More...

#include <fontserv.h>

Inheritance diagram for iFontServer:

iBase List of all members.

Public Methods

virtual iFontLoadFont (const char *filename)=0
 Load a font by name. More...

virtual int GetFontCount ()=0
 Get number of loaded fonts.

virtual iFontGetFont (int iIndex)=0
 Get Nth loaded font or NULL. More...

Detailed Description

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.

Member Function Documentation

iFont * iFontServer::GetFont ( int iIndex ) [pure virtual]

Get Nth loaded font or NULL.

You can query all loaded fonts with this method, by looping through all indices starting from 0 until you get NULL. Note that the returned font is NOT IncRef'd: do it yourself if you store the pointer for long-term use.

iFont * iFontServer::LoadFont ( const char * filename ) [pure virtual]

Load a font by name.

Returns a new iFont object or NULL on failure.

The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000