CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

iFontServer Struct Reference
[2D]

A font server interface. More...

#include <fontserv.h>

Inheritance diagram for iFontServer:

iBase List of all members.

Public Methods

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

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

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


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.

Definition at line 216 of file fontserv.h.


Member Function Documentation

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

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.

virtual int iFontServer::GetFontCount   [pure virtual]
 

Get number of loaded fonts.

virtual csPtr<iFont> iFontServer::LoadFont const char *    filename [pure virtual]
 

Load a font by name.

Returns a new iFont object or 0 on failure.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18