Reply to FREETYPE and GD

Your name:

Reply:


Posted by Aaron Todd on 03/02/05 19:51

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);
?>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация