<?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 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.ps-get-value.php',
    1 => 'ps_get_value',
    2 => 'Gets certain values',
  ),
  'up' => 
  array (
    0 => 'ref.ps.php',
    1 => 'PS 函数',
  ),
  'prev' => 
  array (
    0 => 'function.ps-get-parameter.php',
    1 => 'ps_get_parameter',
  ),
  'next' => 
  array (
    0 => 'function.ps-hyphenate.php',
    1 => 'ps_hyphenate',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ps/functions/ps-get-value.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ps-get-value" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ps_get_value</h1>
  <p class="verinfo">(PECL ps &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">ps_get_value</span> &mdash; <span class="dc-title">Gets certain values</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ps-get-value-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ps_get_value</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$psdoc</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$modifier</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.float.php" class="type float">float</a></span></div>

  <p class="para rdfs-comment">Gets several values which were set by
   <span class="function"><a href="function.ps-set-value.php" class="function">ps_set_value()</a></span>. Values are by definition float values.
  </p>
  <p class="para">
   The parameter <code class="parameter">name</code> can have the following values.
  </p>
  <p class="para">
   <dl>
    
     <dt><code class="literal">fontsize</code></dt>
     <dd>
      <p class="para">
       The size of the currently active font or the font whose
       identifier is passed in parameter <code class="parameter">modifier</code>.
      </p>
     </dd>
    
    
     <dt><code class="literal">font</code></dt>
     <dd>
      <p class="para">
       The currently active font itself.
      </p>
     </dd>
    
    
     <dt><code class="literal">imagewidth</code></dt>
     <dd>
      <p class="para">
       The width of the image whose id is passed in the parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>
    
    
     <dt><code class="literal">imageheight</code></dt>
     <dd>
      <p class="para">
       The height of the image whose id is passed in the parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>
    
    
     <dt><code class="literal">capheight</code></dt>
     <dd>
      <p class="para">
       The height of a capital M in the currently active font or the font
       whose identifier is passed in parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>
    
    
     <dt><code class="literal">ascender</code></dt>
     <dd>
      <p class="para">
       The ascender of the currently active font or the font
       whose identifier is passed in parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>
    
    
     <dt><code class="literal">descender</code></dt>
     <dd>
      <p class="para">
       The descender of the currently active font or the font
       whose identifier is passed in parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>
    
    
     <dt><code class="literal">italicangle</code></dt>
     <dd>
      <p class="para">
       The italicangle of the currently active font or the font
       whose identifier is passed in parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>
    
    
     <dt><code class="literal">underlineposition</code></dt>
     <dd>
      <p class="para">
       The underlineposition of the currently active font or the font
       whose identifier is passed in parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>
    
    
     <dt><code class="literal">underlinethickness</code></dt>
     <dd>
      <p class="para">
       The underlinethickness of the currently active font or the font
       whose identifier is passed in parameter
       <code class="parameter">modifier</code>.
      </p>
     </dd>
    
    
     <dt><code class="literal">textx</code></dt>
     <dd>
      <p class="para">
       The current x-position for text output.
      </p>
     </dd>
    
    
     <dt><code class="literal">texty</code></dt>
     <dd>
      <p class="para">
       The current y-position for text output.
      </p>
     </dd>
    
    
     <dt><code class="literal">textrendering</code></dt>
     <dd>
      <p class="para">
       The current mode for text rendering.
      </p>
     </dd>
    
    
     <dt><code class="literal">textrise</code></dt>
     <dd>
      <p class="para">
       The space by which text is risen above the base line.
      </p>
     </dd>
    
    
     <dt><code class="literal">leading</code></dt>
     <dd>
      <p class="para">
       The distance between text lines in points.
      </p>
     </dd>
    
    
     <dt><code class="literal">wordspacing</code></dt>
     <dd>
      <p class="para">
       The space between words as a multiple of the width of a space char.
      </p>
     </dd>
    
    
     <dt><code class="literal">charspacing</code></dt>
     <dd>
      <p class="para">
       The space between chars. If charspacing is != 0.0 ligatures will
       always be dissolved.
      </p>
     </dd>
    
    
     <dt><code class="literal">hyphenminchars</code></dt>
     <dd>
      <p class="para">
       Minimum number of chars hyphenated at the end of a word.
      </p>
     </dd>
    
    
     <dt><code class="literal">parindent</code></dt>
     <dd>
      <p class="para">
       Indention of the first n line in a paragraph.
      </p>
     </dd>
    
    
     <dt><code class="literal">numindentlines</code></dt>
     <dd>
      <p class="para">
       Number of line in a paragraph to indent if parindent != 0.0.
      </p>
     </dd>
    
    
     <dt><code class="literal">parskip</code></dt>
     <dd>
      <p class="para">
       Distance between paragraphs.
      </p>
     </dd>
    
    
     <dt><code class="literal">linenumberspace</code></dt>
     <dd>
      <p class="para">
       Overall space in front of each line for the line number.
      </p>
     </dd>
    
    
     <dt><code class="literal">linenumbersep</code></dt>
     <dd>
      <p class="para">
       Space between the line and the line number.
      </p>
     </dd>
    
    
     <dt><code class="literal">major</code></dt>
     <dd>
      <p class="para">
       The major version number of pslib.
      </p>
     </dd>
    
    
     <dt><code class="literal">minor</code></dt>
     <dd>
      <p class="para">
       The minor version number of pslib.
      </p>
     </dd>
    
    
     <dt><code class="literal">subminor</code>, <code class="literal">revision</code></dt>
     <dd>
      <p class="para">
       The subminor version number of pslib.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ps-get-value-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">name</code></dt>
     <dd>
      <p class="para">
       Name of the value.
      </p>
     </dd>
    
    
     <dt><code class="parameter">modifier</code></dt>
     <dd>
      <p class="para">
       The parameter <code class="parameter">modifier</code> specifies the resource
       for which the value is to be retrieved. This can be the id of a font or
       an image.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ps-get-value-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the value of the parameter or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ps-get-value-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ps-set-value.php" class="function" rel="rdfs-seeAlso">ps_set_value()</a> - Sets certain values</span></li>
   </ul>
  </p>
 </div>

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