<!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: FTFont.h Source File</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><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <h1>FTFont.h</h1><a href="FTFont_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> * FTGL - OpenGL font library</span> <a name="l00003"></a>00003 <span class="comment"> *</span> <a name="l00004"></a>00004 <span class="comment"> * Copyright (c) 2001-2004 Henry Maddocks <ftgl@opengl.geek.nz></span> <a name="l00005"></a>00005 <span class="comment"> * Copyright (c) 2008 Sam Hocevar <sam@zoy.org></span> <a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2008 Sean Morrison <learner@brlcad.org></span> <a name="l00007"></a>00007 <span class="comment"> *</span> <a name="l00008"></a>00008 <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining</span> <a name="l00009"></a>00009 <span class="comment"> * a copy of this software and associated documentation files (the</span> <a name="l00010"></a>00010 <span class="comment"> * "Software"), to deal in the Software without restriction, including</span> <a name="l00011"></a>00011 <span class="comment"> * without limitation the rights to use, copy, modify, merge, publish,</span> <a name="l00012"></a>00012 <span class="comment"> * distribute, sublicense, and/or sell copies of the Software, and to</span> <a name="l00013"></a>00013 <span class="comment"> * permit persons to whom the Software is furnished to do so, subject to</span> <a name="l00014"></a>00014 <span class="comment"> * the following conditions:</span> <a name="l00015"></a>00015 <span class="comment"> *</span> <a name="l00016"></a>00016 <span class="comment"> * The above copyright notice and this permission notice shall be</span> <a name="l00017"></a>00017 <span class="comment"> * included in all copies or substantial portions of the Software.</span> <a name="l00018"></a>00018 <span class="comment"> *</span> <a name="l00019"></a>00019 <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,</span> <a name="l00020"></a>00020 <span class="comment"> * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span> <a name="l00021"></a>00021 <span class="comment"> * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</span> <a name="l00022"></a>00022 <span class="comment"> * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY</span> <a name="l00023"></a>00023 <span class="comment"> * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,</span> <a name="l00024"></a>00024 <span class="comment"> * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE</span> <a name="l00025"></a>00025 <span class="comment"> * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</span> <a name="l00026"></a>00026 <span class="comment"> */</span> <a name="l00027"></a>00027 <a name="l00028"></a>00028 <span class="preprocessor">#ifndef __ftgl__</span> <a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor"># warning This header is deprecated. Please use <FTGL/ftgl.h> from now.</span> <a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor"># include <<a class="code" href="ftgl_8h.html">FTGL/ftgl.h</a>></span> <a name="l00031"></a>00031 <span class="preprocessor">#endif</span> <a name="l00032"></a>00032 <span class="preprocessor"></span> <a name="l00033"></a>00033 <span class="preprocessor">#ifndef __FTFont__</span> <a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define __FTFont__</span> <a name="l00035"></a>00035 <span class="preprocessor"></span> <a name="l00036"></a>00036 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00037"></a>00037 <span class="preprocessor"></span> <a name="l00038"></a>00038 <span class="keyword">class </span>FTFontImpl; <a name="l00039"></a>00039 <a name="l00056"></a><a class="code" href="classFTFont.html">00056</a> <span class="keyword">class </span><a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <a class="code" href="classFTFont.html" title="FTFont is the public interface for the FTGL library.">FTFont</a> <a name="l00057"></a>00057 { <a name="l00058"></a>00058 <span class="keyword">protected</span>: <a name="l00064"></a>00064 <a class="code" href="classFTFont.html" title="FTFont is the public interface for the FTGL library.">FTFont</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *fontFilePath); <a name="l00065"></a>00065 <a name="l00074"></a>00074 <a class="code" href="classFTFont.html" title="FTFont is the public interface for the FTGL library.">FTFont</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *pBufferBytes, <span class="keywordtype">size_t</span> bufferSizeInBytes); <a name="l00075"></a>00075 <a name="l00076"></a>00076 <span class="keyword">private</span>: <a name="l00077"></a>00077 <span class="comment">/* Allow our internal subclasses to access the private constructor */</span> <a name="l00078"></a><a class="code" href="classFTFont.html#a7ba5a198d501799828a37b4b808b9352">00078</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classFTBitmapFont.html" title="FTBitmapFont is a specialisation of the FTFont class for handling Bitmap fonts.">FTBitmapFont</a>; <a name="l00079"></a><a class="code" href="classFTFont.html#ab7dc21f40be33fee50c41b3ba3d49c73">00079</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classFTBufferFont.html" title="FTBufferFont is a specialisation of the FTFont class for handling memory buffer fonts...">FTBufferFont</a>; <a name="l00080"></a><a class="code" href="classFTFont.html#a06be1600e211ee41aa1b1ed9c7d25639">00080</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classFTExtrudeFont.html" title="FTExtrudeFont is a specialisation of the FTFont class for handling extruded Polygon...">FTExtrudeFont</a>; <a name="l00081"></a><a class="code" href="classFTFont.html#a17f6eed308c6d1116a7f1d86010f6c9e">00081</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classFTOutlineFont.html" title="FTOutlineFont is a specialisation of the FTFont class for handling Vector Outline...">FTOutlineFont</a>; <a name="l00082"></a><a class="code" href="classFTFont.html#ac7f382db9ff9f02888b67b7434d7edd4">00082</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classFTPixmapFont.html" title="FTPixmapFont is a specialisation of the FTFont class for handling Pixmap (Grey Scale)...">FTPixmapFont</a>; <a name="l00083"></a><a class="code" href="classFTFont.html#abd1c273c43e47346ad6c178ec173cc41">00083</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classFTPolygonFont.html" title="FTPolygonFont is a specialisation of the FTFont class for handling tesselated Polygon...">FTPolygonFont</a>; <a name="l00084"></a><a class="code" href="classFTFont.html#a7870c341f7269dfae257e93406c17c92">00084</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classFTTextureFont.html" title="FTTextureFont is a specialisation of the FTFont class for handling Texture mapped...">FTTextureFont</a>; <a name="l00085"></a>00085 <a name="l00092"></a>00092 <a class="code" href="classFTFont.html#af7edeab8bc77784a537dc63e54315cc9" title="Open and read a font file.">FTFont</a>(<a class="code" href="classFTFont.html#a7ae54d130cb58f258d2b036a544c7a9b">FTFontImpl</a> *pImpl); <a name="l00093"></a>00093 <a name="l00094"></a>00094 <span class="keyword">public</span>: <a name="l00095"></a>00095 <span class="keyword">virtual</span> <a class="code" href="classFTFont.html#a9df9b873c582024867ff6b9dfff0face">~FTFont</a>(); <a name="l00096"></a>00096 <a name="l00106"></a>00106 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFTFont.html#a7ec6a20a092c338648626b98ec879e0c" title="Attach auxilliary file to font e.g font metrics.">Attach</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fontFilePath); <a name="l00107"></a>00107 <a name="l00118"></a>00118 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFTFont.html#a7ec6a20a092c338648626b98ec879e0c" title="Attach auxilliary file to font e.g font metrics.">Attach</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *pBufferBytes, <a name="l00119"></a>00119 <span class="keywordtype">size_t</span> bufferSizeInBytes); <a name="l00120"></a>00120 <a name="l00128"></a>00128 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFTFont.html#af29f89a8aa0f4e43a3a229ed1d3beacd" title="Set the glyph loading flags.">GlyphLoadFlags</a>(FT_Int flags); <a name="l00129"></a>00129 <a name="l00137"></a>00137 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFTFont.html#a64f7346221e90325220829eeaa238e93" title="Set the character map for the face.">CharMap</a>(FT_Encoding encoding); <a name="l00138"></a>00138 <a name="l00144"></a>00144 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFTFont.html#a78cfce358a1b95d7b3792fcc3f99aa73" title="Get the number of character maps in this face.">CharMapCount</a>() <span class="keyword">const</span>; <a name="l00145"></a>00145 <a name="l00151"></a>00151 <span class="keyword">virtual</span> FT_Encoding* <a class="code" href="classFTFont.html#a160ad04d573a6bcd0ecb709d7ded4fa3" title="Get a list of character maps in this face.">CharMapList</a>(); <a name="l00152"></a>00152 <a name="l00160"></a>00160 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFTFont.html#a9cbb507fc57e6d50c5967d2ab3c50041" title="Get the current face size in points (1/72 inch).">FaceSize</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size, <a name="l00161"></a>00161 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> res = 72); <a name="l00162"></a>00162 <a name="l00168"></a>00168 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFTFont.html#a9cbb507fc57e6d50c5967d2ab3c50041" title="Get the current face size in points (1/72 inch).">FaceSize</a>() <span class="keyword">const</span>; <a name="l00169"></a>00169 <a name="l00176"></a>00176 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFTFont.html#a7fc7825ca4089e12a679f788e0cb9d2c" title="Set the extrusion distance for the font.">Depth</a>(<span class="keywordtype">float</span> depth); <a name="l00177"></a>00177 <a name="l00184"></a>00184 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFTFont.html#aff29fad8b2a53f518311d06e2c25b227" title="Set the outset distance for the font.">Outset</a>(<span class="keywordtype">float</span> outset); <a name="l00185"></a>00185 <a name="l00193"></a>00193 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFTFont.html#aff29fad8b2a53f518311d06e2c25b227" title="Set the outset distance for the font.">Outset</a>(<span class="keywordtype">float</span> front, <span class="keywordtype">float</span> back); <a name="l00194"></a>00194 <a name="l00201"></a>00201 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFTFont.html#a5d3dfcf608bb1e07a7ceeec23f079600" title="Enable or disable the use of Display Lists inside FTGL.">UseDisplayList</a>(<span class="keywordtype">bool</span> useList); <a name="l00202"></a>00202 <a name="l00208"></a>00208 <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="classFTFont.html#ac4659028a0be30e8bc85814e7e53ee87" title="Get the global ascender height for the face.">Ascender</a>() <span class="keyword">const</span>; <a name="l00209"></a>00209 <a name="l00215"></a>00215 <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="classFTFont.html#aa72f172f4f9a39970913e176f38866bc" title="Gets the global descender height for the face.">Descender</a>() <span class="keyword">const</span>; <a name="l00216"></a>00216 <a name="l00222"></a>00222 <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="classFTFont.html#ac85ec080661ab10f124dbd0bb058556d" title="Gets the line spacing for the font.">LineHeight</a>() <span class="keyword">const</span>; <a name="l00223"></a>00223 <a name="l00236"></a>00236 <span class="keyword">virtual</span> <a class="code" href="classFTBBox.html" title="FTBBox is a convenience class for handling bounding boxes.">FTBBox</a> <a class="code" href="classFTFont.html#a05b5c069ab8e958935096df78f8af16f" title="Get the bounding box for a string.">BBox</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">string</span>, <span class="keyword">const</span> <span class="keywordtype">int</span> len = -1, <a name="l00237"></a>00237 <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> position = <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a>(), <a name="l00238"></a>00238 <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> spacing = <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a>()); <a name="l00239"></a>00239 <a name="l00251"></a><a class="code" href="classFTFont.html#a45078d6f0b74334030558d10cfeab4b9">00251</a> <span class="keywordtype">void</span> <a class="code" href="classFTFont.html#a05b5c069ab8e958935096df78f8af16f" title="Get the bounding box for a string.">BBox</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">string</span>, <span class="keywordtype">float</span>& llx, <span class="keywordtype">float</span>& lly, <span class="keywordtype">float</span>& llz, <a name="l00252"></a>00252 <span class="keywordtype">float</span>& urx, <span class="keywordtype">float</span>& ury, <span class="keywordtype">float</span>& urz) <a name="l00253"></a>00253 { <a name="l00254"></a>00254 <a class="code" href="classFTBBox.html" title="FTBBox is a convenience class for handling bounding boxes.">FTBBox</a> b = <a class="code" href="classFTFont.html#a05b5c069ab8e958935096df78f8af16f" title="Get the bounding box for a string.">BBox</a>(<span class="keywordtype">string</span>); <a name="l00255"></a>00255 llx = b.<a class="code" href="classFTBBox.html#a8172e5c98a2a6e02ba7d4dc0cd6c0b0e">Lower</a>().<a class="code" href="classFTPoint.html#ab1d302e6449554c1436344f53d837567">Xf</a>(); lly = b.<a class="code" href="classFTBBox.html#a8172e5c98a2a6e02ba7d4dc0cd6c0b0e">Lower</a>().<a class="code" href="classFTPoint.html#a053519d9a0a76828a4f66850755316d0">Yf</a>(); llz = b.<a class="code" href="classFTBBox.html#a8172e5c98a2a6e02ba7d4dc0cd6c0b0e">Lower</a>().<a class="code" href="classFTPoint.html#a00c075c3d15a95a611094e1d13bf32b9">Zf</a>(); <a name="l00256"></a>00256 urx = b.<a class="code" href="classFTBBox.html#a9c33d51b0bddc05ad89ecbf6790b4193">Upper</a>().<a class="code" href="classFTPoint.html#ab1d302e6449554c1436344f53d837567">Xf</a>(); ury = b.<a class="code" href="classFTBBox.html#a9c33d51b0bddc05ad89ecbf6790b4193">Upper</a>().<a class="code" href="classFTPoint.html#a053519d9a0a76828a4f66850755316d0">Yf</a>(); urz = b.<a class="code" href="classFTBBox.html#a9c33d51b0bddc05ad89ecbf6790b4193">Upper</a>().<a class="code" href="classFTPoint.html#a00c075c3d15a95a611094e1d13bf32b9">Zf</a>(); <a name="l00257"></a>00257 } <a name="l00258"></a>00258 <a name="l00271"></a>00271 <span class="keyword">virtual</span> <a class="code" href="classFTBBox.html" title="FTBBox is a convenience class for handling bounding boxes.">FTBBox</a> <a class="code" href="classFTFont.html#a05b5c069ab8e958935096df78f8af16f" title="Get the bounding box for a string.">BBox</a>(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *<span class="keywordtype">string</span>, <span class="keyword">const</span> <span class="keywordtype">int</span> len = -1, <a name="l00272"></a>00272 <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> position = <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a>(), <a name="l00273"></a>00273 <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> spacing = <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a>()); <a name="l00274"></a>00274 <a name="l00286"></a><a class="code" href="classFTFont.html#af495e078c9f8bad2b6fb0b5d04416fe7">00286</a> <span class="keywordtype">void</span> <a class="code" href="classFTFont.html#a05b5c069ab8e958935096df78f8af16f" title="Get the bounding box for a string.">BBox</a>(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span>* <span class="keywordtype">string</span>, <span class="keywordtype">float</span>& llx, <span class="keywordtype">float</span>& lly, <span class="keywordtype">float</span>& llz, <a name="l00287"></a>00287 <span class="keywordtype">float</span>& urx, <span class="keywordtype">float</span>& ury, <span class="keywordtype">float</span>& urz) <a name="l00288"></a>00288 { <a name="l00289"></a>00289 <a class="code" href="classFTBBox.html" title="FTBBox is a convenience class for handling bounding boxes.">FTBBox</a> b = <a class="code" href="classFTFont.html#a05b5c069ab8e958935096df78f8af16f" title="Get the bounding box for a string.">BBox</a>(<span class="keywordtype">string</span>); <a name="l00290"></a>00290 llx = b.<a class="code" href="classFTBBox.html#a8172e5c98a2a6e02ba7d4dc0cd6c0b0e">Lower</a>().<a class="code" href="classFTPoint.html#ab1d302e6449554c1436344f53d837567">Xf</a>(); lly = b.<a class="code" href="classFTBBox.html#a8172e5c98a2a6e02ba7d4dc0cd6c0b0e">Lower</a>().<a class="code" href="classFTPoint.html#a053519d9a0a76828a4f66850755316d0">Yf</a>(); llz = b.<a class="code" href="classFTBBox.html#a8172e5c98a2a6e02ba7d4dc0cd6c0b0e">Lower</a>().<a class="code" href="classFTPoint.html#a00c075c3d15a95a611094e1d13bf32b9">Zf</a>(); <a name="l00291"></a>00291 urx = b.<a class="code" href="classFTBBox.html#a9c33d51b0bddc05ad89ecbf6790b4193">Upper</a>().<a class="code" href="classFTPoint.html#ab1d302e6449554c1436344f53d837567">Xf</a>(); ury = b.<a class="code" href="classFTBBox.html#a9c33d51b0bddc05ad89ecbf6790b4193">Upper</a>().<a class="code" href="classFTPoint.html#a053519d9a0a76828a4f66850755316d0">Yf</a>(); urz = b.<a class="code" href="classFTBBox.html#a9c33d51b0bddc05ad89ecbf6790b4193">Upper</a>().<a class="code" href="classFTPoint.html#a00c075c3d15a95a611094e1d13bf32b9">Zf</a>(); <a name="l00292"></a>00292 } <a name="l00293"></a>00293 <a name="l00305"></a>00305 <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="classFTFont.html#ae606eb0323341d1a521dae7a712f1b6e" title="Get the advance for a string.">Advance</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">string</span>, <span class="keyword">const</span> <span class="keywordtype">int</span> len = -1, <a name="l00306"></a>00306 <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> spacing = <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a>()); <a name="l00307"></a>00307 <a name="l00319"></a>00319 <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="classFTFont.html#ae606eb0323341d1a521dae7a712f1b6e" title="Get the advance for a string.">Advance</a>(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span>* <span class="keywordtype">string</span>, <span class="keyword">const</span> <span class="keywordtype">int</span> len = -1, <a name="l00320"></a>00320 <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> spacing = <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a>()); <a name="l00321"></a>00321 <a name="l00335"></a>00335 <span class="keyword">virtual</span> <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> <a class="code" href="classFTFont.html#ac6de580b27cc4df4986855967639de87" title="Render a string of characters.">Render</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">string</span>, <span class="keyword">const</span> <span class="keywordtype">int</span> len = -1, <a name="l00336"></a>00336 <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> position = <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a>(), <a name="l00337"></a>00337 <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> spacing = <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a>(), <a name="l00338"></a>00338 <span class="keywordtype">int</span> renderMode = <a class="code" href="namespaceFTGL.html#a9916822cb1247bd2e1aae26f7bfec74ea2966ccc38996af16a67387177a8c6a62">FTGL::RENDER_ALL</a>); <a name="l00339"></a>00339 <a name="l00353"></a>00353 <span class="keyword">virtual</span> <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> <a class="code" href="classFTFont.html#ac6de580b27cc4df4986855967639de87" title="Render a string of characters.">Render</a>(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *<span class="keywordtype">string</span>, <span class="keyword">const</span> <span class="keywordtype">int</span> len = -1, <a name="l00354"></a>00354 <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> position = <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a>(), <a name="l00355"></a>00355 <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> spacing = <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a>(), <a name="l00356"></a>00356 <span class="keywordtype">int</span> renderMode = <a class="code" href="namespaceFTGL.html#a9916822cb1247bd2e1aae26f7bfec74ea2966ccc38996af16a67387177a8c6a62">FTGL::RENDER_ALL</a>); <a name="l00357"></a>00357 <a name="l00363"></a>00363 <span class="keyword">virtual</span> FT_Error <a class="code" href="classFTFont.html#a1b535e3a7fef84c073988ab6f74f9ec1" title="Queries the Font for errors.">Error</a>() <span class="keyword">const</span>; <a name="l00364"></a>00364 <a name="l00365"></a>00365 <span class="keyword">protected</span>: <a name="l00366"></a>00366 <span class="comment">/* Allow impl to access MakeGlyph */</span> <a name="l00367"></a><a class="code" href="classFTFont.html#a7ae54d130cb58f258d2b036a544c7a9b">00367</a> <span class="keyword">friend</span> <span class="keyword">class </span>FTFontImpl; <a name="l00368"></a>00368 <a name="l00378"></a>00378 <span class="keyword">virtual</span> <a class="code" href="classFTGlyph.html" title="FTGlyph is the base class for FTGL glyphs.">FTGlyph</a>* MakeGlyph(FT_GlyphSlot slot) = 0; <a name="l00379"></a>00379 <a name="l00380"></a>00380 <span class="keyword">private</span>: <a name="l00384"></a>00384 FTFontImpl *impl; <a name="l00385"></a>00385 }; <a name="l00386"></a>00386 <a name="l00387"></a>00387 <span class="preprocessor">#endif //__cplusplus</span> <a name="l00388"></a>00388 <span class="preprocessor"></span> <a name="l00389"></a>00389 <a class="code" href="ftgl_8h.html#a1543f6485dcd3ef6db0a10396071a6f6">FTGL_BEGIN_C_DECLS</a> <a name="l00390"></a>00390 <a name="l00398"></a>00398 <span class="keyword">struct </span>_FTGLFont; <a name="l00399"></a><a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">00399</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_FTGLfont <a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>; <a name="l00400"></a>00400 <a name="l00409"></a>00409 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a> *<a class="code" href="FTFont_8h.html#a3f54c50d3bfa9b5c0b103b0f9a2debb2" title="Create a custom FTGL font object.">ftglCreateCustomFont</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *fontFilePath, <a name="l00410"></a>00410 <span class="keywordtype">void</span> *data, <a name="l00411"></a>00411 <a class="code" href="FTGlyph_8h.html#a155b37e19e0844502e473bb32c31a558">FTGLglyph</a> * (*makeglyphCallback) (FT_GlyphSlot, <span class="keywordtype">void</span> *)); <a name="l00412"></a>00412 <a name="l00418"></a>00418 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">void</span> <a class="code" href="FTFont_8h.html#af0dc4b1c8987895d19e863416ae8d174" title="Destroy an FTGL font object.">ftglDestroyFont</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font); <a name="l00419"></a>00419 <a name="l00429"></a>00429 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">int</span> <a class="code" href="FTFont_8h.html#a4452c327ff636fc2f0ecb1859687bfe0" title="Attach auxilliary file to font e.g.">ftglAttachFile</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font, <span class="keyword">const</span> <span class="keywordtype">char</span>* path); <a name="l00430"></a>00430 <a name="l00441"></a>00441 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">int</span> <a class="code" href="FTFont_8h.html#ad9fba15428fb163a34f9ee824e748162" title="Attach auxilliary data to font, e.g.">ftglAttachData</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * data, <a name="l00442"></a>00442 <span class="keywordtype">size_t</span> size); <a name="l00443"></a>00443 <a name="l00451"></a>00451 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">int</span> <a class="code" href="FTFont_8h.html#a905390158041bc80509997c414133ddc" title="Set the character map for the face.">ftglSetFontCharMap</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font, FT_Encoding encoding); <a name="l00452"></a>00452 <a name="l00459"></a>00459 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="FTFont_8h.html#a1ebde0e8531774259e234ccd9d067624" title="Get the number of character maps in this face.">ftglGetFontCharMapCount</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font); <a name="l00460"></a>00460 <a name="l00467"></a>00467 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> FT_Encoding* <a class="code" href="FTFont_8h.html#a7c7657c95cdbf9f4f84b4754cddc7aca" title="Get a list of character maps in this face.">ftglGetFontCharMapList</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font); <a name="l00468"></a>00468 <a name="l00478"></a>00478 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">int</span> <a class="code" href="FTFont_8h.html#a00c8f893cbeb98b663f9755647a34e8c" title="Set the char size for the current face.">ftglSetFontFaceSize</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size, <a name="l00479"></a>00479 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> res); <a name="l00480"></a>00480 <a name="l00487"></a>00487 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="FTFont_8h.html#a8440b2e4f21d60eb9e3efc6ca9666bee" title="Get the current face size in points (1/72 inch).">ftglGetFontFaceSize</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font); <a name="l00488"></a>00488 <a name="l00496"></a>00496 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">void</span> <a class="code" href="FTFont_8h.html#a92c51879d3c2ed1bf42350c620421eb2" title="Set the extrusion distance for the font.">ftglSetFontDepth</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font, <span class="keywordtype">float</span> depth); <a name="l00497"></a>00497 <a name="l00507"></a>00507 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">void</span> <a class="code" href="FTFont_8h.html#aa070c4b773378fe159bd0356183f710e" title="Set the outset distance for the font.">ftglSetFontOutset</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font, <span class="keywordtype">float</span> front, <span class="keywordtype">float</span> back); <a name="l00508"></a>00508 <a name="l00516"></a>00516 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">void</span> <a class="code" href="FTFont_8h.html#a08f284adddb91d67d6a31077cc0f7ef1" title="Enable or disable the use of Display Lists inside FTGL.">ftglSetFontDisplayList</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font, <span class="keywordtype">int</span> useList); <a name="l00517"></a>00517 <a name="l00524"></a>00524 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">float</span> <a class="code" href="FTFont_8h.html#a6f931a3b2bfad1511e80324717a7f00e" title="Get the global ascender height for the face.">ftglGetFontAscender</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font); <a name="l00525"></a>00525 <a name="l00532"></a>00532 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">float</span> <a class="code" href="FTFont_8h.html#a210968a0e92685b9b8522c869708425a" title="Gets the global descender height for the face.">ftglGetFontDescender</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font); <a name="l00533"></a>00533 <a name="l00540"></a>00540 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">float</span> <a class="code" href="FTFont_8h.html#aab9088d0d1261b75d31cbee909783aed" title="Gets the line spacing for the font.">ftglGetFontLineHeight</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font); <a name="l00541"></a>00541 <a name="l00552"></a>00552 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">void</span> <a class="code" href="FTFont_8h.html#ae2f41b36c47bb3cbcb6f3e7f3d12ed74" title="Get the bounding box for a string.">ftglGetFontBBox</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">string</span>, <a name="l00553"></a>00553 <span class="keywordtype">int</span> len, <span class="keywordtype">float</span> bounds[6]); <a name="l00554"></a>00554 <a name="l00562"></a>00562 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">float</span> <a class="code" href="FTFont_8h.html#a0886ea1dd82291182b2c9acd43f24571" title="Get the advance width for a string.">ftglGetFontAdvance</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">string</span>); <a name="l00563"></a>00563 <a name="l00571"></a>00571 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">void</span> <a class="code" href="FTFont_8h.html#a048872ff0cf567ef94884ee7ea4d16d9" title="Render a string of characters.">ftglRenderFont</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">string</span>, <span class="keywordtype">int</span> mode); <a name="l00572"></a>00572 <a name="l00579"></a>00579 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> FT_Error <a class="code" href="FTFont_8h.html#a7c334b38242e448749165dfdac5054fc" title="Query a font for errors.">ftglGetFontError</a>(<a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>* font); <a name="l00580"></a>00580 <a name="l00581"></a>00581 <a class="code" href="ftgl_8h.html#aba8b33a81b5c655eb7c4b358419a17d5">FTGL_END_C_DECLS</a> <a name="l00582"></a>00582 <a name="l00583"></a>00583 <span class="preprocessor">#endif // __FTFont__</span> <a name="l00584"></a>00584 <span class="preprocessor"></span> </pre></div></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>