reference/image/functions/imagettfbbox.xml
593ea510e853ff034e03f78a4be0daa41661c9d4
...
...
@@ -8,11 +8,12 @@
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>array</type><methodname>imagettfbbox</methodname>
11
+
<type class="union"><type>array</type><type>false</type></type><methodname>imagettfbbox</methodname>
12
12
<methodparam><type>float</type><parameter>size</parameter></methodparam>
13
13
<methodparam><type>float</type><parameter>angle</parameter></methodparam>
14
-
<methodparam><type>string</type><parameter>fontfile</parameter></methodparam>
15
-
<methodparam><type>string</type><parameter>text</parameter></methodparam>
14
+
<methodparam><type>string</type><parameter>font_filename</parameter></methodparam>
15
+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
16
+
<methodparam choice="opt"><type>array</type><parameter>options</parameter><initializer>[]</initializer></methodparam>
16
17
</methodsynopsis>
17
18
<para>
18
19
This function calculates and returns the bounding box in pixels
...
...
@@ -20,9 +21,10 @@
20
21
</para>
21
22
<note>
22
23
<para>
23
-
<function>imageftbbox</function> is an extended variant of
24
-
<function>imagettfbbox</function> which additionally supports the
24
+
Prior to PHP 8.0.0, <function>imageftbbox</function> was an extended variant of
25
+
<function>imagettfbbox</function> which additionally supported the
25
26
<parameter>extrainfo</parameter>.
27
+
As of PHP 8.0.0, <function>imagettfbbox</function> is an alias of <function>imageftbbox</function>.
26
28
</para>
27
29
</note>
28
30
</refsect1>
...
...
@@ -40,13 +42,13 @@
40
42
<term><parameter>angle</parameter></term>
41
43
<listitem>
42
44
<para>
43
-
Angle in degrees in which <parameter>text</parameter> will be measured.
45
+
Angle in degrees in which <parameter>string</parameter> will be measured.
44
46
</para>
45
47
</listitem>
46
48
</varlistentry>
47
49
&gd.ttf.fontfile;
48
50
<varlistentry>
49
-
<term><parameter>text</parameter></term>
51
+
<term><parameter>string</parameter></term>
50
52
<listitem>
51
53
<para>
52
54
The string to be measured.
...
...
@@ -113,6 +115,29 @@
113
115
corner seeing the text horizontally.
114
116
</para>
115
117
</refsect1>
118
+

119
+
<refsect1 role="changelog">
120
+
&reftitle.changelog;
121
+
<informaltable>
122
+
<tgroup cols="2">
123
+
<thead>
124
+
<row>
125
+
<entry>&Version;</entry>
126
+
<entry>&Description;</entry>
127
+
</row>
128
+
</thead>
129
+
<tbody>
130
+
<row>
131
+
<entry>8.0.0</entry>
132
+
<entry>
133
+
The <parameter>options</parameter> has been added.
134
+
</entry>
135
+
</row>
136
+
</tbody>
137
+
</tgroup>
138
+
</informaltable>
139
+
</refsect1>
140
+

116
141
<refsect1 role="examples">
117
142
&reftitle.examples;
118
143
<para>
...
...
@@ -169,15 +194,12 @@ imagedestroy($im);
169
194
</refsect1>
170
195
<refsect1 role="seealso">
171
196
&reftitle.seealso;
172
-
<para>
173
-
<simplelist>
174
-
<member><function>imagettftext</function></member>
175
-
<member><function>imageftbbox</function></member>
176
-
</simplelist>
177
-
</para>
197
+
<simplelist>
198
+
<member><function>imagettftext</function></member>
199
+
<member><function>imageftbbox</function></member>
200
+
</simplelist>
178
201
</refsect1>
179
202
</refentry>
180
-

181
203
<!-- Keep this comment at the end of the file
182
204
Local variables:
183
205
mode: sgml
184
206