note 112826 added to function.imagefontwidth
| From: | Anonymous | Date: | Sat, 27 Jul 2013 05:18:20 +0000 |
| Subject: | note 112826 added to function.imagefontwidth | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195787@lists.php.net to get a copy of this message | ||
I've notice that with accented characters (so french !!)
like that:
strlen("câble" * imagefontwidth(FONTSIZE));
this command give a string length bigger than it is in reality
so you have to pass the chain in utf8 decode before
strlen(utf8_decode("câble") * imagefontwidth(FONTSIZE));
that's all (sorry for my english !)
----
Server IP: 69.147.83.199
Probable Submitter: 123.50.124.194
----
Manual Page -- http://php.net/manual/en/function.imagefontwidth.php
Edit -- https://master.php.net/note/edit/112826
Del: integrated -- https://master.php.net/note/delete/112826/integrated
Del: useless -- https://master.php.net/note/delete/112826/useless
Del: bad code -- https://master.php.net/note/delete/112826/bad+code
Del: spam -- https://master.php.net/note/delete/112826/spam
Del: non-english -- https://master.php.net/note/delete/112826/non-english
Del: in docs -- https://master.php.net/note/delete/112826/in+docs
Del: other reasons-- https://master.php.net/note/delete/112826
Reject -- https://master.php.net/note/reject/112826
Search -- https://master.php.net/manage/user-notes.php