uTools-Manuals/docs/php/imagepsextendfont.html
2019-04-08 23:22:26 +08:00

92 lines
4.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>扩充或精简字体</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.imagepsextendfont" class="refentry">
<div class="refnamediv">
<h1 class="refname">imagepsextendfont</h1>
<p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">imagepsextendfont</span> &mdash; <span class="dc-title">扩充或精简字体</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.imagepsextendfont-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>imagepsextendfont</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$font_index</code></span>
, <span class="methodparam"><span class="type">float</span> <code class="parameter">$extend</code></span>
) : <span class="type">bool</span></div>
<p class="para rdfs-comment">
扩充或精简某字体(<code class="parameter">font_index</code>)。如果
<code class="parameter">extend</code> 参数的值小于一则是精简该字体。
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.imagepsextendfont-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">font_index</code></dt>
<dd>
<p class="para">
<span class="function"><a href="imagepsloadfont.html" class="function">imagepsloadfont()</a></span> 返回的字体资源。
</p>
</dd>
<dt>
<code class="parameter">extend</code></dt>
<dd>
<p class="para">
扩展的值,必须大于 0。
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.imagepsextendfont-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
成功时返回 <strong><code>TRUE</code></strong> 或者在失败时返回 <strong><code>FALSE</code></strong>
</p>
</div>
<div class="refsect1 examples" id="refsect1-function.imagepsextendfont-examples">
<h3 class="title">范例</h3>
<p class="para">
<div class="example" id="example-3728">
<p><strong>Example #1 <span class="function"><strong>imagepsextendfont()</strong></span> 例子</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;Load&nbsp;a&nbsp;.pfb&nbsp;font&nbsp;file<br /></span><span style="color: #0000BB">$font&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">imagepsloadfont</span><span style="color: #007700">(</span><span style="color: #DD0000">'./px3l.pfb'</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;Extend&nbsp;the&nbsp;font&nbsp;by&nbsp;2.5<br /></span><span style="color: #0000BB">imagepsextendfont</span><span style="color: #007700">(</span><span style="color: #0000BB">$font</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">2.5</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;Do&nbsp;any&nbsp;operations&nbsp;with&nbsp;the&nbsp;font&nbsp;here<br /><br />//&nbsp;Free&nbsp;the&nbsp;font&nbsp;from&nbsp;memory<br /></span><span style="color: #0000BB">imagepsfreefont</span><span style="color: #007700">(</span><span style="color: #0000BB">$font</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
</p>
</div>
<div class="refsect1 notes" id="refsect1-function.imagepsextendfont-notes">
<h3 class="title">注释</h3>
<blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara">此函数仅在 PHP
编译时指定了 <strong class="option configure">--with-t1lib[=DIR]</strong>
时可用。</span></p></blockquote>
</div>
</div></div></div></body></html>