reference/image/functions/imageloadfont.xml
a7e5e563d2d2269a6d7ccff506715a3e1a6f3902
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.imageloadfont">
3
+
<refentry xml:id="function.imageloadfont" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>imageloadfont</refname>
6
6
<refpurpose>Load a new font</refpurpose>
...
...
@@ -8,8 +8,8 @@
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>int</type><methodname>imageloadfont</methodname>
12
-
<methodparam><type>string</type><parameter>file</parameter></methodparam>
11
+
<type class="union"><type>GdFont</type><type>false</type></type><methodname>imageloadfont</methodname>
12
+
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
13
13
</methodsynopsis>
14
14
<para>
15
15
<function>imageloadfont</function> loads a user-defined bitmap and returns
...
...
@@ -21,7 +21,7 @@
21
21
<para>
22
22
<variablelist>
23
23
<varlistentry>
24
-
<term><parameter>file</parameter></term>
24
+
<term><parameter>filename</parameter></term>
25
25
<listitem>
26
26
<para>
27
27
The font file format is currently binary and architecture
...
...
@@ -82,10 +82,35 @@
82
82
<refsect1 role="returnvalues">
83
83
&reftitle.returnvalues;
84
84
<para>
85
-
The font identifier which is always bigger than 5 to avoid conflicts with
86
-
built-in fonts or &false; on errors.
85
+
Returns an <classname>GdFont</classname> instance,&return.falseforfailure;.
87
86
</para>
88
87
</refsect1>
88
+

89
+
<refsect1 role="changelog">
90
+
&reftitle.changelog;
91
+
<para>
92
+
<informaltable>
93
+
<tgroup cols="2">
94
+
<thead>
95
+
<row>
96
+
<entry>&Version;</entry>
97
+
<entry>&Description;</entry>
98
+
</row>
99
+
</thead>
100
+
<tbody>
101
+
<row>
102
+
<entry>8.1.0</entry>
103
+
<entry>
104
+
Returns an <classname>GdFont</classname> instance now;
105
+
previously, an &integer; was returned.
106
+
</entry>
107
+
</row>
108
+
</tbody>
109
+
</tgroup>
110
+
</informaltable>
111
+
</para>
112
+
</refsect1>
113
+
89
114
<refsect1 role="examples">
90
115
&reftitle.examples;
91
116
<para>
...
...
@@ -119,15 +144,12 @@ imagedestroy($im);
119
144
</refsect1>
120
145
<refsect1 role="seealso">
121
146
&reftitle.seealso;
122
-
<para>
123
-
<simplelist>
124
-
<member><function>imagefontwidth</function></member>
125
-
<member><function>imagefontheight</function></member>
126
-
</simplelist>
127
-
</para>
147
+
<simplelist>
148
+
<member><function>imagefontwidth</function></member>
149
+
<member><function>imagefontheight</function></member>
150
+
</simplelist>
128
151
</refsect1>
129
152
</refentry>
130
-

131
153
<!-- Keep this comment at the end of the file
132
154
Local variables:
133
155
mode: sgml
134
156