<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Crystal Space 1.2.1: iFontServer Struct Reference (Crystal Space 1.2.1 Public API Reference)</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head"> <tr height="59"> <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td> <td class="head"><h2>Public API Reference</h2></td> </tr> <tr height="11"> <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td> </tr> </table> <div class="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <h1>iFontServer Struct Reference<br> <small> [<a class="el" href="group__gfx2d.html">2D</a>]</small> </h1><!-- doxytag: class="iFontServer" --><!-- doxytag: inherits="iBase" -->A font server interface. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="fontserv_8h-source.html">ivideo/fontserv.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for iFontServer:</div> <div class="dynsection"> <p><center><img src="structiFontServer__inherit__graph.png" border="0" usemap="#iFontServer__inherit__map" alt="Inheritance graph"></center> <map name="iFontServer__inherit__map"> <area shape="rect" href="structiBase.html" title="This is the basic interface: all other interfaces should be derived from this one..." alt="" coords="25,7,81,33"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="structiFontServer-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structiFontServer.html#e41c6bde18c36aa676cd13685129f8a3">GetWarnOnError</a> ()=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get status of warning emission on error. <a href="#e41c6bde18c36aa676cd13685129f8a3"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classcsPtr.html">csPtr</a>< <a class="el" href="structiFont.html">iFont</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="structiFontServer.html#05eee2a2a263d32ac5977eb5890fab6e">LoadFont</a> (const char *filename, float size=10.0f)=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Load a font by name. <a href="#05eee2a2a263d32ac5977eb5890fab6e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="structiFontServer.html#2b21ea889a9945d7014803b694ffab33">SetWarnOnError</a> (bool enable)=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Enable or disable error reporting. <a href="#2b21ea889a9945d7014803b694ffab33"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A font server interface. <p> Font server can load fonts and create <a class="el" href="structiFont.html" title="A font object.">iFont</a> 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.<p> Main creators of instances implementing this interface:<ul> <li>Font Multiplexer plugin (crystalspace.font.server.multiplexer)</li><li>Standard Font server plugin (crystalspace.font.server.default)</li><li>FreeType2 Font server plugin (crystalspace.font.server.freetype2)</li></ul> <p> Main ways to get pointers to this interface:<ul> <li><a class="el" href="iutil_2objreg_8h.html#2a09063f1dabdde133a6269016f6a3da">CS_QUERY_REGISTRY()</a></li></ul> <p> Main users of this interface:<ul> <li><a class="el" href="structiGraphics3D.html" title="This is the standard 3D graphics interface.">iGraphics3D</a> implementations (3D renderers). </li></ul> <p>Definition at line <a class="el" href="fontserv_8h-source.html#l00242">242</a> of file <a class="el" href="fontserv_8h-source.html">fontserv.h</a>.</p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="e41c6bde18c36aa676cd13685129f8a3"></a><!-- doxytag: member="iFontServer::GetWarnOnError" ref="e41c6bde18c36aa676cd13685129f8a3" args="()=0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool iFontServer::GetWarnOnError </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get status of warning emission on error. <p> </div> </div><p> <a class="anchor" name="05eee2a2a263d32ac5977eb5890fab6e"></a><!-- doxytag: member="iFontServer::LoadFont" ref="05eee2a2a263d32ac5977eb5890fab6e" args="(const char *filename, float size=10.0f)=0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classcsPtr.html">csPtr</a><<a class="el" href="structiFont.html">iFont</a>> iFontServer::LoadFont </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>filename</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"> <em>size</em> = <code>10.0f</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Load a font by name. <p> Returns a new <a class="el" href="structiFont.html" title="A font object.">iFont</a> object or 0 on failure. </div> </div><p> <a class="anchor" name="2b21ea889a9945d7014803b694ffab33"></a><!-- doxytag: member="iFontServer::SetWarnOnError" ref="2b21ea889a9945d7014803b694ffab33" args="(bool enable)=0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void iFontServer::SetWarnOnError </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>enable</em> </td> <td> ) </td> <td width="100%"><code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Enable or disable error reporting. <p> By default, the font loaders emit a warning when a font could not loaded. Use this method to enable or disable that behaviour. </div> </div><p> <hr>The documentation for this struct was generated from the following file:<ul> <li>ivideo/<a class="el" href="fontserv_8h-source.html">fontserv.h</a></ul> <hr size="1"><address><small>Generated for Crystal Space 1.2.1 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 </small></address> </div></body> </html>