Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > f5b8bf9ba5c3c0062e8b494b5ddab2e8 > files > 51

cairomm-devel-1.8.4-1.fc13.i686.rpm

<!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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;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&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1FtScaledFont.html#8b1153077c36a983a8f9176e554ce980">lock_face</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</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&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1FtScaledFont.html#3b56b2e107f3119bca0a934926dce66e">unlock_face</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</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>&lt; <a class="el" href="classCairo_1_1FtScaledFont.html">FtScaledFont</a> &gt;&#160;</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>&lt; <a class="el" href="classCairo_1_1FtFontFace.html">FtFontFace</a> &gt;&amp; font_face, const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp; font_matrix, const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp; ctm, const <a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>&amp; options=<a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>())</td></tr>

<tr><td class="mdescLeft">&#160;</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">&#160;</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>&lt; <a class="el" href="classCairo_1_1FtFontFace.html">FtFontFace</a> &gt;&amp; font_face, const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp; font_matrix, const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp; ctm, const <a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>&amp; 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 &amp; Destructor Documentation</h2>
<a class="anchor" name="809853982f391540df5ac1c124477d65"></a><!-- doxytag: member="Cairo::FtScaledFont::FtScaledFont" ref="809853982f391540df5ac1c124477d65" args="(const RefPtr&lt; FtFontFace &gt; &amp;font_face, const Matrix &amp;font_matrix, const Matrix &amp;ctm, const FontOptions &amp;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>&lt; <a class="el" href="classCairo_1_1FtFontFace.html">FtFontFace</a> &gt;&amp;&#160;</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>&amp;&#160;</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>&amp;&#160;</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>&amp;&#160;</td>
          <td class="paramname"> <em>options</em> = <code><a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>()</code></td><td>&#160;</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&lt; FtFontFace &gt; &amp;font_face, const Matrix &amp;font_matrix, const Matrix &amp;ctm, const FontOptions &amp;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>&lt;<a class="el" href="classCairo_1_1FtScaledFont.html">FtScaledFont</a>&gt; Cairo::FtScaledFont::create           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1FtFontFace.html">FtFontFace</a> &gt;&amp;&#160;</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>&amp;&#160;</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>&amp;&#160;</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>&amp;&#160;</td>
          <td class="paramname"> <em>options</em> = <code><a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>()</code></td><td>&#160;</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>&#160;)&#160;</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>&#160;)&#160;</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&#160;
<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>