note 21441 added to function.imagettftext
| From: | bisho at -NO-SPAM-eurielec dot etsit dot upm dot es | Date: | Mon, 13 May 2002 16:06:42 +0000 |
| Subject: | note 21441 added to function.imagettftext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30588@lists.php.net to get a copy of this message | ||
To render Symbol fonts, in windows symbol encoding you can't type characters directly (at least
in linux freetype version 2)
This function converts a string to the corresponding unicode code in "Windows Symbol"
encoding:
function iso2uni ($isoline){
for ($i=0; $i < strlen($isoline); $i++){
$thischar=substr($isoline,$i,1);
$charcode=ord($thischar);
$uniline.="&#".(61440+($charcode)).";";
}
return $uniline;
}
--
http://www.php.net/manual/en/function.imagettftext.php
http://master.php.net/manage/user-notes.php?action=edit+21441
http://master.php.net/manage/user-notes.php?action=delete+21441
http://master.php.net/manage/user-notes.php?action=reject+21441