mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
41 lines
2.2 KiB
HTML
41 lines
2.2 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>Prepare font for later use [deprecated]</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.pdf-findfont" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">PDF_findfont</h1>
|
|
<p class="verinfo">(PHP 4 >= 4.0.5, PECL pdflib >= 1.0.0)</p><p class="refpurpose"><span class="refname">PDF_findfont</span> — <span class="dc-title">Prepare font for later use [deprecated]</span></p>
|
|
|
|
</div>
|
|
<div class="refsect1 description" id="refsect1-function.pdf-findfont-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>PDF_findfont</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$p</code></span>
|
|
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$fontname</code></span>
|
|
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$encoding</code></span>
|
|
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$embed</code></span>
|
|
) : <span class="type">int</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Search for a font and prepare it for later use with <span class="function"><a href="pdf_setfont.html" class="function">PDF_setfont()</a></span>.
|
|
The metrics will be loaded, and if <code class="parameter">embed</code> is
|
|
nonzero, the font file will be checked, but not yet used.
|
|
<code class="parameter">encoding</code> is one of <em>builtin</em>,
|
|
<em>macroman</em>, <em>winansi</em>,
|
|
<em>host</em>, a user-defined encoding name or the name of
|
|
a CMap.
|
|
Parameter <code class="parameter">embed</code> is optional before PHP 4.3.5 or
|
|
with PDFlib less than 5.
|
|
</p>
|
|
<p class="para">
|
|
This function is deprecated since PDFlib version 5, use
|
|
<span class="function"><a href="pdf_load_font.html" class="function">PDF_load_font()</a></span> instead.
|
|
</p>
|
|
</div>
|
|
|
|
</div></div></div></body></html> |