note 21441 deleted from function.imagettftext by vincent
| From: | vincent@php.net | Date: | Thu, 11 Sep 2003 20:24:26 +0000 |
| Subject: | note 21441 deleted from function.imagettftext by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56226@lists.php.net to get a copy of this message | ||
Note Submitter: bisho@-NO-SPAM-eurielec.etsit.upm.es
----
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;
}