You are here: imagettftext and "\t" problem « PHP Programming Language « IT news, forums, messages
imagettftext and "\t" problem

Posted by Gordan on 06/28/05 11:32

Im using imagettftext to write some text on my image. I'm on Win XP and using
the plain arial.ttf font that I copied from win dir
my typical line would be
imagettftext($im, 33, 0, 20, 500, $black, 'arial.ttf', $text);

everything is perfect except the tab "\t" sign
if I set $text = "something\tsomething" the tab gets displayed but it also
displays some rectangle like "this char is in wrong encoding" or something like
that. Basically I get two chars out of "\t" the tab and that rectangle. Using
"\n" is normal - it just splits my text in 2 lines. But I'm very confused with
this "\t" issue :-( Is there another way to make tabs?

thanks gordan

 

Navigation:

[Reply to this 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

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