<!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: FTOutlineFont 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.6.2-20100208 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <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 class="tabs"> <ul> <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="contents"> <h1>FTOutlineFont Class Reference</h1><!-- doxytag: class="FTOutlineFont" --><!-- doxytag: inherits="FTFont" --> <p><a class="el" href="classFTOutlineFont.html" title="FTOutlineFont is a specialisation of the FTFont class for handling Vector Outline...">FTOutlineFont</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 Vector Outline fonts. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="FTGLOutlineFont_8h_source.html">FTGLOutlineFont.h</a>></code></p> <div class="dynheader"> Inheritance diagram for FTOutlineFont:</div> <div class="dynsection"> <div class="center"> <img src="classFTOutlineFont.png" usemap="#FTOutlineFont_map" alt=""/> <map id="FTOutlineFont_map" name="FTOutlineFont_map"> <area href="classFTFont.html" alt="FTFont" shape="rect" coords="0,0,92,24"/> </map> </div> </div> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTOutlineFont.html#a248f6a8fa1244c7bff53f1c799c8163f">FTOutlineFont</a> (const char *fontFilePath)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Open and read a font file. <a href="#a248f6a8fa1244c7bff53f1c799c8163f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTOutlineFont.html#a6618bdb1b3a672d4d6750627cf1dac0c">FTOutlineFont</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="#a6618bdb1b3a672d4d6750627cf1dac0c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTOutlineFont.html#a2ac40cf9e9013fc2e82b98a55e0fa28e">~FTOutlineFont</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a2ac40cf9e9013fc2e82b98a55e0fa28e"></a><br/></td></tr> <tr><td colspan="2"><h2>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="classFTOutlineFont.html#a39df452446d15bd1d78ede61ae3f8c27">MakeGlyph</a> (FT_GlyphSlot slot)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a glyph of the correct type. <a href="#a39df452446d15bd1d78ede61ae3f8c27"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p><a class="el" href="classFTOutlineFont.html" title="FTOutlineFont is a specialisation of the FTFont class for handling Vector Outline...">FTOutlineFont</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 Vector Outline 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="FTGLOutlineFont_8h_source.html#l00045">45</a> of file <a class="el" href="FTGLOutlineFont_8h_source.html">FTGLOutlineFont.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a248f6a8fa1244c7bff53f1c799c8163f"></a><!-- doxytag: member="FTOutlineFont::FTOutlineFont" ref="a248f6a8fa1244c7bff53f1c799c8163f" args="(const char *fontFilePath)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTOutlineFont::FTOutlineFont </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 border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>fontFilePath</em> </td><td>font file path. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a6618bdb1b3a672d4d6750627cf1dac0c"></a><!-- doxytag: member="FTOutlineFont::FTOutlineFont" ref="a6618bdb1b3a672d4d6750627cf1dac0c" args="(const unsigned char *pBufferBytes, size_t bufferSizeInBytes)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTOutlineFont::FTOutlineFont </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><td> </td> </tr> <tr> <td></td> <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 border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pBufferBytes</em> </td><td>the in-memory buffer </td></tr> <tr><td valign="top"></td><td valign="top"><em>bufferSizeInBytes</em> </td><td>the length of the buffer in bytes </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a2ac40cf9e9013fc2e82b98a55e0fa28e"></a><!-- doxytag: member="FTOutlineFont::~FTOutlineFont" ref="a2ac40cf9e9013fc2e82b98a55e0fa28e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTOutlineFont::~FTOutlineFont </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="a39df452446d15bd1d78ede61ae3f8c27"></a><!-- doxytag: member="FTOutlineFont::MakeGlyph" ref="a39df452446d15bd1d78ede61ae3f8c27" 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>* FTOutlineFont::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 border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>slot</em> </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="FTGLOutlineFont_8h_source.html">FTGLOutlineFont.h</a></li> </ul> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address> </body> </html>