vrana           Tue Jul 27 12:29:46 2004 EDT

  Modified files:              
    /phpdoc/en/reference/image/functions        imageloadfont.xml 
  Log:
  Returns false, example (bug #25899)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/image/functions/imageloadfont.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc/en/reference/image/functions/imageloadfont.xml
diff -u phpdoc/en/reference/image/functions/imageloadfont.xml:1.2 
phpdoc/en/reference/image/functions/imageloadfont.xml:1.3
--- phpdoc/en/reference/image/functions/imageloadfont.xml:1.2   Wed Apr 17 02:39:13 
2002
+++ phpdoc/en/reference/image/functions/imageloadfont.xml       Tue Jul 27 12:29:46 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
   <refentry id="function.imageloadfont">
    <refnamediv>
@@ -16,6 +16,7 @@
      <function>imageloadfont</function> loads a user-defined bitmap
      font and returns an identifier for the font (that is always
      greater than 5, so it will not conflict with the built-in fonts).
+     It returns &false; in case of error.
     </para>
     <para>
      The font file format is currently binary and architecture
@@ -67,6 +68,24 @@
        </tbody>
       </tgroup>
      </table>
+    </para>
+    <para>
+     <example>
+      <title>Using imageloadfont</title>
+      <programlisting role="php">
+<![CDATA[
+<?php
+$im = imagecreate(50, 20);
+$black = imagecolorallocate($im, 0, 0, 0);
+$white = imagecolorallocate($im, 255, 255, 255);
+imagefilledrectangle($im, 0, 0, 49, 19, $white);
+$font = imageloadfont("04b.gdf");
+imagestring($im, $font, 0, 0, "Hello", $black);
+imagepng($im);
+?>
+]]>
+      </programlisting>
+     </example>
     </para>
     <para>
      See also <function>imagefontwidth</function> and

Reply via email to