note 36895 added to function.imagettftext
| From: | DarkCryst at rn2 dot php dot net | Date: | Sun, 26 Oct 2003 14:29:54 +0000 |
| Subject: | note 36895 added to function.imagettftext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-59318@lists.php.net to get a copy of this message | ||
As mentioned earlier, if you get a rectangle in place of some of the characters in your text THIS IS
NOT AN ERROR.
What this is is the fonts missing character glyph and is subsituted for any character the font
doesn't actually have. It isn't that the mapping is incorrect, as one person guessed at,
the designer of the font just didn't make that character or didn't include it in your
version of the font (eg - if it is a free version of a commercial font).
This is most common in non latin characters (basically non english characters) so many french,
scandiavian, russian, greek.. etc. etc characters won't apear. This is most commonly noticed in
strings that include characters with acutes or other similar symbols.
Another thing to watch out for - if your text isn't showing at all.. make sure that you have
escaped your apostrophes in the string.. so "it's" becomes "it\'s"
otherwise you can run into problems. Its simple I know, but its amazing how you can miss just one.
----
Manual Page -- http://www.php.net/manual/en/function.imagettftext.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36895
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36895&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36895&report=yes
Search -- http://master.php.net/manage/user-notes.php