function.harudoc-loadttc.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 121 行

HTML
121
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Load the font with the specified index from TTC file</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.harudoc-loadraw.html">HaruDoc::loadRaw</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.harudoc-loadttf.html">HaruDoc::loadTTF</a></div> <div class="up"><a href="class.harudoc.html">HaruDoc</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.harudoc-loadttc" class="refentry"> <div class="refnamediv">  <h1 class="refname">HaruDoc::loadTTC</h1>  <p class="verinfo">(PECL haru:0.0.1)</p><p class="refpurpose"><span class="refname">HaruDoc::loadTTC</span> &mdash; <span class="dc-title">Load the font with the specified index from TTC file</span></p> </div> <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">string</span> <span class="methodname"><b><b>HaruDoc::loadTTC</b></b></span>    ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$fontfile</tt></span>   , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$index</tt></span>   [, <span class="methodparam"><span class="type">bool</span> <tt class="parameter">$embed</tt></span>  ] )</div>  <p class="para rdfs-comment">   Loads the TrueType font with the specified index from a TrueType collection   file.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">fontfile</tt></i></span>     <dd>      <p class="para">       The TrueType collection file.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">index</tt></i></span>     <dd>      <p class="para">       The index of the font in the collection file.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">embed</tt></i></span>     <dd>      <p class="para">       When set to <b><tt>TRUE</tt></b>, the glyph data of the font is embedded into the PDF       file, otherwise only the matrix data is included. Defaults to <b><tt>FALSE</tt></b>.      </p>     </dd>    </dt>   </dl>  </p> </div>  <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns the name of the loaded font on success.  </p> </div> <div class="refsect1 errors">  <h3 class="title">Errors/Exceptions</h3>  <p class="para">   Throws <a href="class.haruexception.html" class="classname">HaruException</a> on error.   </p> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="function.harudoc-loadttf.html" class="link"><a href="class.harudoc.html" class="classname">HaruDoc</a>::<b>loadTTF()</b></a></li>    <li class="member"><a href="function.harudoc-loadtype1.html" class="link"><a href="class.harudoc.html" class="classname">HaruDoc</a>::<b>loadType1()</b></a></li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.harudoc-loadraw.html">HaruDoc::loadRaw</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.harudoc-loadttf.html">HaruDoc::loadTTF</a></div> <div class="up"><a href="class.harudoc.html">HaruDoc</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?