FREETYPE and GD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I've created a simple script that takes in image and draws some lines and 
some text on top of it.  I am having a problem with the text part of this. 
When the string that I am drawing on the image contains and apostrophe ( ' ) 
there is always a backslash ( \ ) before it.  It make sense that it is the 
escape character, but I need to be able to show the apostrophe.  Anyone have 
any ideas about this?

  <?php
  $backdir = "/var/www/html/backgrounds/";
  $im = ImageCreatefromJPEG($backdir.$_GET['background']);
  $textcolor = imagecolorallocate($im, 255, 255, 255);
  $font = "/var/www/html/fonts/arial.ttf";
  imagepolygon($im, array(36, 24, 36, 456, 684, 456, 684, 24), 4, 
$textcolor);
  imagepolygon($im, array(72, 48, 72, 432, 648, 432, 648, 48), 4, 
$textcolor);
  maketext($im, 30, 0, 360, 240, $textcolor, $font, $_GET['toparea']);


  Header("Content-type: image/jpeg");
  Imagejpeg($im);
  imagedestroy($im);
  ?> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux