<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ps.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.ps-string-geometry.php',
    1 => 'ps_string_geometry',
    2 => 'Gets geometry of a string',
  ),
  'up' => 
  array (
    0 => 'ref.ps.php',
    1 => 'PS Функції',
  ),
  'prev' => 
  array (
    0 => 'function.ps-show2.php',
    1 => 'ps_show2',
  ),
  'next' => 
  array (
    0 => 'function.ps-stringwidth.php',
    1 => 'ps_stringwidth',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ps/functions/ps-string-geometry.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ps-string-geometry" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ps_string_geometry</h1>
  <p class="verinfo">(PECL ps &gt;= 1.2.0)</p><p class="refpurpose"><span class="refname">ps_string_geometry</span> &mdash; <span class="dc-title">Gets geometry of a string</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ps-string-geometry-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ps_string_geometry</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$psdoc</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$text</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$fontid</code><span class="initializer"> = 0</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$size</code><span class="initializer"> = 0.0</span></span><br>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   This function is similar to <span class="function"><a href="function.ps-stringwidth.php" class="function">ps_stringwidth()</a></span> but returns
   an array of dimensions containing the width, ascender, and descender
   of the text.
   </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ps-string-geometry-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">psdoc</code></dt>
     <dd>
      <p class="para">
       Resource identifier of the postscript file
       as returned by <span class="function"><a href="function.ps-new.php" class="function">ps_new()</a></span>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">text</code></dt>
     <dd>
      <p class="para">
       The text for which the geometry is to be calculated.
      </p>
     </dd>
    
    
     <dt><code class="parameter">fontid</code></dt>
     <dd>
      <p class="para">
       The identifier of the font to be used. If not font is specified
       the current font will be used.
      </p>
     </dd>
    
    
     <dt><code class="parameter">size</code></dt>
     <dd>
      <p class="para">
       The size of the font. If no size is specified the current size
       is used.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ps-string-geometry-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   An array of the dimensions of a string. The element &#039;width&#039; contains the
   width of the string as returned by <span class="function"><a href="function.ps-stringwidth.php" class="function">ps_stringwidth()</a></span>. The
   element &#039;descender&#039; contains the maximum descender and &#039;ascender&#039; the
   maximum ascender of the string.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ps-string-geometry-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ps-continue-text.php" class="function" rel="rdfs-seeAlso">ps_continue_text()</a> - Continue text in next line</span></li>
    <li><span class="function"><a href="function.ps-stringwidth.php" class="function" rel="rdfs-seeAlso">ps_stringwidth()</a> - Gets width of a string</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>