SourceForge logo
SourceForge logo
Menu

phpwiki-checkins

From: Carsten K. <car...@us...> - 2001年12月06日 01:26:34
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);
 
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /