1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>cairomm: Cairo::FtScaledFont Class Reference</title>
<link href="cairomm.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<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>
<div class="navpath"><a class="el" href="namespaceCairo.html">Cairo</a>::<a class="el" href="classCairo_1_1FtScaledFont.html">FtScaledFont</a>
</div>
</div>
<div class="contents">
<h1>Cairo::FtScaledFont Class Reference</h1><!-- doxytag: class="Cairo::FtScaledFont" --><!-- doxytag: inherits="Cairo::ScaledFont" -->Inherits <a class="el" href="classCairo_1_1ScaledFont.html">Cairo::ScaledFont</a>.
<p>
<p>
<a href="classCairo_1_1FtScaledFont-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">FT_Face </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1FtScaledFont.html#8b1153077c36a983a8f9176e554ce980">lock_face</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the FT_Face object from a FreeType backend font and scales it appropriately for the font. <a href="#8b1153077c36a983a8f9176e554ce980"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1FtScaledFont.html#3b56b2e107f3119bca0a934926dce66e">unlock_face</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Releases a face obtained with <a class="el" href="classCairo_1_1FtScaledFont.html#8b1153077c36a983a8f9176e554ce980" title="Gets the FT_Face object from a FreeType backend font and scales it appropriately...">lock_face()</a>. <a href="#3b56b2e107f3119bca0a934926dce66e"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1FtScaledFont.html">FtScaledFont</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1FtScaledFont.html#3c247841af3702cd28ab89b9f843a67e">create</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1FtFontFace.html">FtFontFace</a> >& font_face, const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>& font_matrix, const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>& ctm, const <a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>& options=<a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>())</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> From a <a class="el" href="classCairo_1_1FtFontFace.html">FtFontFace</a>. <a href="#3c247841af3702cd28ab89b9f843a67e"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1FtScaledFont.html#809853982f391540df5ac1c124477d65">FtScaledFont</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1FtFontFace.html">FtFontFace</a> >& font_face, const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>& font_matrix, const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>& ctm, const <a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>& options=<a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>())</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.8 </dd></dl>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="809853982f391540df5ac1c124477d65"></a><!-- doxytag: member="Cairo::FtScaledFont::FtScaledFont" ref="809853982f391540df5ac1c124477d65" args="(const RefPtr< FtFontFace > &font_face, const Matrix &font_matrix, const Matrix &ctm, const FontOptions &options=FontOptions())" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Cairo::FtScaledFont::FtScaledFont </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1FtFontFace.html">FtFontFace</a> >& </td>
<td class="paramname"> <em>font_face</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>& </td>
<td class="paramname"> <em>font_matrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>& </td>
<td class="paramname"> <em>ctm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>& </td>
<td class="paramname"> <em>options</em> = <code><a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>()</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="3c247841af3702cd28ab89b9f843a67e"></a><!-- doxytag: member="Cairo::FtScaledFont::create" ref="3c247841af3702cd28ab89b9f843a67e" args="(const RefPtr< FtFontFace > &font_face, const Matrix &font_matrix, const Matrix &ctm, const FontOptions &options=FontOptions())" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a><<a class="el" href="classCairo_1_1FtScaledFont.html">FtScaledFont</a>> Cairo::FtScaledFont::create </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1FtFontFace.html">FtFontFace</a> >& </td>
<td class="paramname"> <em>font_face</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>& </td>
<td class="paramname"> <em>font_matrix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>& </td>
<td class="paramname"> <em>ctm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>& </td>
<td class="paramname"> <em>options</em> = <code><a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>()</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> From a <a class="el" href="classCairo_1_1FtFontFace.html">FtFontFace</a>.
<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.8 </dd></dl>
</div>
</div><p>
<a class="anchor" name="8b1153077c36a983a8f9176e554ce980"></a><!-- doxytag: member="Cairo::FtScaledFont::lock_face" ref="8b1153077c36a983a8f9176e554ce980" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">FT_Face Cairo::FtScaledFont::lock_face </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Gets the FT_Face object from a FreeType backend font and scales it appropriately for the font.
<p>
You must release the face with <a class="el" href="classCairo_1_1FtScaledFont.html#3b56b2e107f3119bca0a934926dce66e" title="Releases a face obtained with lock_face().">unlock_face()</a> when you are done using it. Since the FT_Face object can be shared between multiple <a class="el" href="classCairo_1_1ScaledFont.html" title="A ScaledFont is a font scaled to a particular size and device resolution.">ScaledFont</a> objects, you must not lock any other font objects until you unlock this one. A count is kept of the number of times <a class="el" href="classCairo_1_1FtScaledFont.html#8b1153077c36a983a8f9176e554ce980" title="Gets the FT_Face object from a FreeType backend font and scales it appropriately...">lock_face()</a> is called. <a class="el" href="classCairo_1_1FtScaledFont.html#3b56b2e107f3119bca0a934926dce66e" title="Releases a face obtained with lock_face().">unlock_face()</a> must be called the same number of times.<p>
You must be careful when using this function in a library or in a threaded application, because freetype's design makes it unsafe to call freetype functions simultaneously from multiple threads, (even if using distinct FT_Face objects). Because of this, application code that acquires an FT_Face object with this call must add it's own locking to protect any use of that object, (and which also must protect any other calls into cairo as almost any cairo function might result in a call into the freetype library).<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The FT_Face object for font, scaled appropriately, or NULL if scaled_font is in an error state or there is insufficient memory.</dd></dl>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.8 </dd></dl>
</div>
</div><p>
<a class="anchor" name="3b56b2e107f3119bca0a934926dce66e"></a><!-- doxytag: member="Cairo::FtScaledFont::unlock_face" ref="3b56b2e107f3119bca0a934926dce66e" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Cairo::FtScaledFont::unlock_face </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Releases a face obtained with <a class="el" href="classCairo_1_1FtScaledFont.html#8b1153077c36a983a8f9176e554ce980" title="Gets the FT_Face object from a FreeType backend font and scales it appropriately...">lock_face()</a>.
<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.8 </dd></dl>
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>cairomm/scaledfont.h</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Aug 13 11:40:14 2009 for cairomm by 
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>
|