[Mapbender-commits] r1534 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jul 25 09:36:55 EDT 2007


Author: christoph
Date: 2007-07-25 09:36:54 -0400 (Wed, 25 Jul 2007)
New Revision: 1534

Modified:
   trunk/mapbender/http/php/createImageFromText.php
Log:
removed obsolete line


Modified: trunk/mapbender/http/php/createImageFromText.php
===================================================================
--- trunk/mapbender/http/php/createImageFromText.php	2007-07-25 10:39:30 UTC (rev 1533)
+++ trunk/mapbender/http/php/createImageFromText.php	2007-07-25 13:36:54 UTC (rev 1534)
@@ -8,10 +8,9 @@
 $text = $_GET["text"];
 $angle = intval($_GET["angle"]);
 
-$bbox = imagettfbbox($fontsize, 0, $font_filename, $text);
 $text_x = 4;
 $text_y = 0;
-$rect_w = 7 * strlen($text) + $text_x;
+$rect_w = 7 * mb_strlen($text) + $text_x;
 $rect_h = 14 + $text_y;
 
 $im = ImageCreate($rect_w, $rect_h);



More information about the Mapbender_commits mailing list