<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>FTGL: FTBufferFont Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">FTGL <span id="projectnumber">2.1.3~rc5</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> </div> <div class="headertitle"> <h1>FTBufferFont Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="FTBufferFont" --><!-- doxytag: inherits="FTFont" --> <p><a class="el" href="classFTBufferFont.html" title="FTBufferFont is a specialisation of the FTFont class for handling memory buffer fonts.">FTBufferFont</a> is a specialisation of the <a class="el" href="classFTFont.html" title="FTFont is the public interface for the FTGL library.">FTFont</a> class for handling memory buffer fonts. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="FTBufferFont_8h_source.html">FTBufferFont.h</a>></code></p> <div class="dynheader"> Inheritance diagram for FTBufferFont:</div> <div class="dyncontent"> <div class="center"> <img src="classFTBufferFont.png" usemap="#FTBufferFont_map" alt=""/> <map id="FTBufferFont_map" name="FTBufferFont_map"> <area href="classFTFont.html" alt="FTFont" shape="rect" coords="0,0,87,24"/> </map> </div></div> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTBufferFont.html#ad58610385b5ab7d8969623c3d1191485">FTBufferFont</a> (const char *fontFilePath)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Open and read a font file. <a href="#ad58610385b5ab7d8969623c3d1191485"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTBufferFont.html#a30367e01fe57608a95e5f644459390a1">FTBufferFont</a> (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Open and read a font from a buffer in memory. <a href="#a30367e01fe57608a95e5f644459390a1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTBufferFont.html#a94d17d98bc86e6dbeda26068b4b8c97f">~FTBufferFont</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a94d17d98bc86e6dbeda26068b4b8c97f"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classFTGlyph.html">FTGlyph</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTBufferFont.html#a8a70fe36e8a627f88cef4dc156fdd2d7">MakeGlyph</a> (FT_GlyphSlot slot)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a glyph of the correct type. <a href="#a8a70fe36e8a627f88cef4dc156fdd2d7"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p><a class="el" href="classFTBufferFont.html" title="FTBufferFont is a specialisation of the FTFont class for handling memory buffer fonts.">FTBufferFont</a> is a specialisation of the <a class="el" href="classFTFont.html" title="FTFont is the public interface for the FTGL library.">FTFont</a> class for handling memory buffer fonts. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classFTFont.html" title="FTFont is the public interface for the FTGL library.">FTFont</a> </dd></dl> <p>Definition at line <a class="el" href="FTBufferFont_8h_source.html#l00043">43</a> of file <a class="el" href="FTBufferFont_8h_source.html">FTBufferFont.h</a>.</p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ad58610385b5ab7d8969623c3d1191485"></a><!-- doxytag: member="FTBufferFont::FTBufferFont" ref="ad58610385b5ab7d8969623c3d1191485" args="(const char *fontFilePath)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTBufferFont::FTBufferFont </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>fontFilePath</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Open and read a font file. </p> <p>Sets Error flag.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">fontFilePath</td><td>font file path. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a30367e01fe57608a95e5f644459390a1"></a><!-- doxytag: member="FTBufferFont::FTBufferFont" ref="a30367e01fe57608a95e5f644459390a1" args="(const unsigned char *pBufferBytes, size_t bufferSizeInBytes)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTBufferFont::FTBufferFont </td> <td>(</td> <td class="paramtype">const unsigned char * </td> <td class="paramname"><em>pBufferBytes</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"><em>bufferSizeInBytes</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Open and read a font from a buffer in memory. </p> <p>Sets Error flag. The buffer is owned by the client and is NOT copied by <a class="el" href="namespaceFTGL.html">FTGL</a>. The pointer must be valid while using <a class="el" href="namespaceFTGL.html">FTGL</a>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">pBufferBytes</td><td>the in-memory buffer </td></tr> <tr><td class="paramname">bufferSizeInBytes</td><td>the length of the buffer in bytes </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a94d17d98bc86e6dbeda26068b4b8c97f"></a><!-- doxytag: member="FTBufferFont::~FTBufferFont" ref="a94d17d98bc86e6dbeda26068b4b8c97f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTBufferFont::~FTBufferFont </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Destructor. </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a8a70fe36e8a627f88cef4dc156fdd2d7"></a><!-- doxytag: member="FTBufferFont::MakeGlyph" ref="a8a70fe36e8a627f88cef4dc156fdd2d7" args="(FT_GlyphSlot slot)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classFTGlyph.html">FTGlyph</a>* FTBufferFont::MakeGlyph </td> <td>(</td> <td class="paramtype">FT_GlyphSlot </td> <td class="paramname"><em>slot</em></td><td>)</td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Construct a glyph of the correct type. </p> <p>Clients must override the function and return their specialised <a class="el" href="classFTGlyph.html" title="FTGlyph is the base class for FTGL glyphs.">FTGlyph</a>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">slot</td><td>A FreeType glyph slot. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>An FT****Glyph or <code>null</code> on failure. </dd></dl> <p>Implements <a class="el" href="classFTFont.html#a07f8bef6c3bd52e7d905e6db17c9b8e6">FTFont</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="FTBufferFont_8h_source.html">FTBufferFont.h</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Wed Feb 9 2011 for FTGL by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>