mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-28 23:08:55 +00:00

- All id attributes are now xml:id - Add docbook namespace to all root elements - Replace <ulink /> with <link xlink:href /> - Minor markup fixes here and there git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238160 c90b9560-bf6c-de11-be94-00142212c4b1
94 lines
2.9 KiB
XML
94 lines
2.9 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.2 $ -->
|
|
<refentry xml:id="function.harudoc-getfont" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>HaruDoc::getFont</refname>
|
|
<refpurpose>Get <classname>HaruFont</classname> instance</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>object</type><methodname>HaruDoc::getFont</methodname>
|
|
<methodparam><type>string</type><parameter>fontname</parameter></methodparam>
|
|
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Creates and returns <classname>HaruFont</classname> instance with the
|
|
specified <parameter>fontname</parameter> and
|
|
<parameter>encoding</parameter>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>fontname</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
The name of the font. See <link linkend="haru.builtin.fonts">Builtin
|
|
Fonts</link> for the list of builtin fonts.
|
|
You can also use the name of a font loaded via
|
|
<link
|
|
linkend="function.harudoc-loadttf"><classname>HaruDoc</classname>::<function>loadTTF</function></link>,
|
|
<link
|
|
linkend="function.harudoc-loadttc"><classname>HaruDoc</classname>::<function>loadTTC</function></link>
|
|
and
|
|
<link
|
|
linkend="function.harudoc-loadtype1"><classname>HaruDoc</classname>::<function>loadType1</function></link>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>encoding</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
The encoding to use. See <link linkend="haru.builtin.encodings">Builtin
|
|
Encodings</link> for the list of supported encodings.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="errors">
|
|
&reftitle.errors;
|
|
<para>
|
|
Throws <classname>HaruException</classname> on error.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><link linkend="function.harupage-setfontandsize"><classname>HaruPage</classname>::<function>setFontAndSize</function></link></member>
|
|
<member><link linkend="function.harupage-getcurrentfont"><classname>HaruPage</classname>::<function>getCurrentFont</function></link></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|