mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
176 lines
4.9 KiB
HTML
176 lines
4.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||
<title>Output text</title>
|
||
</head>
|
||
<body class="docs"><div id="layout">
|
||
<div id="layout-content"><div id="function.ps-show" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">ps_show</h1>
|
||
<p class="verinfo">(PECL ps >= 1.1.0)</p><p class="refpurpose"><span class="refname">ps_show</span> — <span class="dc-title">Output text</span></p>
|
||
|
||
</div>
|
||
|
||
<div class="refsect1 description" id="refsect1-function.ps-show-description">
|
||
<h3 class="title">说明</h3>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>ps_show</strong></span>
|
||
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$psdoc</code></span>
|
||
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$text</code></span>
|
||
) : <span class="type">bool</span></div>
|
||
|
||
<p class="para rdfs-comment">
|
||
Output a text at the current text position. The text position can be set
|
||
by storing the x and y coordinates into the values <em>textx</em>
|
||
and <em>texty</em> with the function
|
||
<span class="function"><a href="ps_set_value.html" class="function">ps_set_value()</a></span>. The function will issue an
|
||
error if a font was not set before with <span class="function"><a href="ps_setfont.html" class="function">ps_setfont()</a></span>.
|
||
</p>
|
||
<p class="para">
|
||
<span class="function"><strong>ps_show()</strong></span> evaluates the following parameters and values
|
||
as set by <span class="function"><a href="ps_set_parameter.html" class="function">ps_set_parameter()</a></span> and
|
||
<span class="function"><a href="ps_set_value.html" class="function">ps_set_value()</a></span>.
|
||
</p>
|
||
<dl>
|
||
|
||
|
||
<dt>
|
||
charspacing (value)</dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
Distance between two consecutive glyphs. If this value is unequal to
|
||
zero then all ligatures will be resolved. Values less than zero are
|
||
allowed.
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt>
|
||
kerning (parameter)</dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
Setting this parameter to "false" will turn off kerning. Kerning is
|
||
turned on by default.
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt>
|
||
ligatures (parameter)</dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
Setting this parameter to "false" will turn off the use of ligatures.
|
||
Ligatures are turned on by default.
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt>
|
||
underline (parameter)</dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
Setting this parameter to "true" will turn on underlining. Underlining
|
||
is turned off by default.
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt>
|
||
overline (parameter)</dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
Setting this parameter to "true" will turn on overlining. Overlining is
|
||
turned off by default.
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt>
|
||
strikeout (parameter)</dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
Setting this parameter to "true" will turn on striking out. Striking out
|
||
is turned off by default.
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
</dl>
|
||
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 parameters" id="refsect1-function.ps-show-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="ps_new.html" class="function">ps_new()</a></span>.
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">text</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
The text to be output.
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
</dl>
|
||
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 returnvalues" id="refsect1-function.ps-show-returnvalues">
|
||
<h3 class="title">返回值</h3>
|
||
<p class="para">
|
||
成功时返回 <strong><code>TRUE</code></strong>, 或者在失败时返回 <strong><code>FALSE</code></strong>。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 seealso" id="refsect1-function.ps-show-seealso">
|
||
<h3 class="title">参见</h3>
|
||
<p class="para">
|
||
<ul class="simplelist">
|
||
<li class="member"><span class="function"><a href="ps_continue_text.html" class="function" rel="rdfs-seeAlso">ps_continue_text()</a> - Continue text in next line</span></li>
|
||
<li class="member"><span class="function"><a href="ps_show_xy.html" class="function" rel="rdfs-seeAlso">ps_show_xy()</a> - Output text at given position</span></li>
|
||
<li class="member"><span class="function"><a href="ps_setfont.html" class="function" rel="rdfs-seeAlso">ps_setfont()</a> - Sets font to use for following output</span></li>
|
||
</ul>
|
||
</p>
|
||
</div>
|
||
|
||
</div></div></div></body></html> |