Update of /cvsroot/phpwiki/phpwiki/lib/plugin
In directory usw-pr-cvs1:/tmp/cvs-serv14700/phpwiki/lib/plugin
Modified Files:
text2png.php
Log Message:
*** empty log message ***
Index: text2png.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/text2png.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** text2png.php 2001/12/06 00:21:45 1.2
--- text2png.php 2001/12/06 01:26:31 1.3
***************
*** 25,33 ****
//you MUST delete the image cache yourself if you change the drawing routines!
! //to show debug string, whether image was saved or loaded from cache
! //and what the path is
!
$filename = $text . ".png";
! if ($l == "C") { $l = "en"; } //FIXME: hack for english, C=en
$filepath = getcwd() . "/images/$l";
--- 25,45 ----
//you MUST delete the image cache yourself if you change the drawing routines!
! //uncomment debug string above to see whether image was saved to or loaded from cache
! //and what the path is.
!
! //locale test
! //http://download.php.net/manual/en/function.dcgettext.php
! //dcgettext and dgettext aren't available functions on my system.?? -carsten
! //this doesn't seem to work anyway, always get english. ??
! //$oldlang=$LANG;
! //putenv("LANG=$l");
! //$LANG=$l;
! //if (!$l == "C") {include("locale/$l/LC_MESSAGES/phpwiki.php");}
! //$text = gettext($text);
! //putenv("LANG=$oldlang");
!
$filename = $text . ".png";
!
! if ($l == "C") { $l = "en"; } //FIXME: hack for english, C=en ??
$filepath = getcwd() . "/images/$l";
***************
*** 60,63 ****
--- 72,77 ----
$text_color = ImageColorAllocate($im, 0, 0, 0);
ImageTTFText($im, 10, 0, 10, 30, $text_color, $ttfont, $text);
+
+ //maybe an alternate text drawing method in case ImageTTFText doesn't work
//ImageString($im, 2, 10, 40, $text, $text_color);
|