Re: problemi s cyr txt v img

From: Date: Thu, 11 Sep 2003 09:42:58 +0000
Subject: Re: problemi s cyr txt v img
References: 1 2  Groups: php.general.bg 
Request: Send a blank email to general-bg+get-112@lists.php.net to get a copy of this message
Tyi i az da si kaza Ot v4era po obiad se boria s cyr v IMG-to i dostignah do razre6enieto koeto se okaza dosta elementarno : $insert_text = "íÿêàêâà êèðèëèöà"; if (strstr( PHP_OS, 'WIN') $pic_text = convert_cyr_string($insert_text, "w", "k"); $isostring = convert_cyr_string($insert_text, "k", "i"); $insert_text = iso2uni($isostring); imagettftext($im, 20, 0, 10, 20, $text_color, "./arial.ttf",$insert_text); kato za celta triabva i tova : function iso2uni ($isoline){ for ($i=0; $i < strlen($isoline); $i++){ $thischar=$isoline[$i]; $charcode=ord($thischar); $uniline.=($charcode>175) ? "&#" . (1040+($charcode-176)). ";" : $thischar; } return $uniline; } "Mr. Bogomil Shopov" <bogomil@webgate.bg> wrote in message news:20030415092205.8123.qmail@pb1.pair.com... > chestito aide sega kasa bira za foruma;-))) > > az lichno polzvah njakakav shrift ruski i izglejdashe mnogo stranno obache > taka i ne upspajh da namerja > Arial za cyr ;_0))) > ako njakoi nameri i az go iskam ako ne e problem ! > > > pozdravi Bogomil > >

« previous php.general.bg (#112) next »