uTools-Manuals/docs/php/imagepsslantfont.html
2019-04-28 19:00:34 +08:00

95 lines
4.3 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.imagepsslantfont" class="refentry">
<div class="refnamediv">
<h1 class="refname">imagepsslantfont</h1>
<p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">imagepsslantfont</span> &mdash; <span class="dc-title">倾斜某字体</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.imagepsslantfont-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>imagepsslantfont</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">$slant</code></span>
) : <span class="type">bool</span></div>
<p class="para rdfs-comment">
<code class="parameter">slant</code> 参数指定的倾斜值来倾斜
<code class="parameter">font_index</code> 参数指定的字体。
</p>
<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 class="refsect1 parameters" id="refsect1-function.imagepsslantfont-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">font_index</code></dt>
<dd>
<p class="para">
A font resource, returned by <span class="function"><a href="imagepsloadfont.html" class="function">imagepsloadfont()</a></span>.
</p>
</dd>
<dt>
<code class="parameter">slant</code></dt>
<dd>
<p class="para">
Slant level.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.imagepsslantfont-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.imagepsslantfont-examples">
<h3 class="title">范例</h3>
<p class="para">
<div class="example" id="example-3731">
<p><strong>Example #1 <span class="function"><strong>imagepsslantfont()</strong></span> example</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;Slant&nbsp;the&nbsp;font&nbsp;by&nbsp;22.5<br /></span><span style="color: #0000BB">imagepsslantfont</span><span style="color: #007700">(</span><span style="color: #0000BB">$font</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">22.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.imagepsslantfont-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>