cvs: phpdoc-hu /reference/image/functions imageloadfont.xml
| From: | Cece) Szabolcs | Date: | Fri, 30 Jul 2004 13:58:25 +0000 |
| Subject: | cvs: phpdoc-hu /reference/image/functions imageloadfont.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-711@lists.php.net to get a copy of this message | ||
cece Fri Jul 30 09:58:25 2004 EDT
Modified files:
/phpdoc-hu/reference/image/functions imageloadfont.xml
Log:
sync
http://cvs.php.net/diff.php/phpdoc-hu/reference/image/functions/imageloadfont.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-hu/reference/image/functions/imageloadfont.xml
diff -u phpdoc-hu/reference/image/functions/imageloadfont.xml:1.2
phpdoc-hu/reference/image/functions/imageloadfont.xml:1.3
--- phpdoc-hu/reference/image/functions/imageloadfont.xml:1.2 Wed Apr 17 02:57:59 2002
+++ phpdoc-hu/reference/image/functions/imageloadfont.xml Fri Jul 30 09:58:25 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- splitted from ./hu/functions/image.xml, last change in rev 1.1 -->
<!-- last change to 'imageloadfont' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: 1.2 Maintainer: kgergely Status: ready -->
+<!-- EN-Revision: 1.3 Maintainer: kgergely Status: ready -->
<!-- OLD-Revision: 1.33/EN.1.2 -->
<refentry id="function.imageloadfont">
<refnamediv>
@@ -18,7 +18,8 @@
Az <function>ImageLoadFont</function> függvény egy felhasználói
pixelgrafikus betûkészletet tölt be és a betöltött betûtípus azonosítóját
adja vissza. (Ez mindig nagyobb, mint 5, hogy a beépített
- betûkészletekkel ne ütközzön.)
+ betûkészletekkel ne ütközzön)
+ Hiba esetén &false; értékkel tér vissza.
</para>
<para>
A font file formátuma jelenleg bináris és gépfüggõ. Ez azt jelenti, hogy
@@ -71,6 +72,24 @@
</tbody>
</tgroup>
</table>
+ </para>
+ <para>
+ <example>
+ <title>Az imageloadfont használata</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$im = imagecreate(50, 20);
+$fekete = imagecolorallocate($im, 0, 0, 0);
+$feher = imagecolorallocate($im, 255, 255, 255);
+imagefilledrectangle($im, 0, 0, 49, 19, $feher);
+$font = imageloadfont("04b.gdf");
+imagestring($im, $font, 0, 0, "Hello", $fekete);
+imagepng($im);
+?>
+]]>
+ </programlisting>
+ </example>
</para>
<para>
Lásd még az <function>ImageFontWidth</function> és a