note 36895 deleted from function.imagettftext by aidan

From: Date: Mon, 20 Sep 2004 10:45:48 +0000
Subject: note 36895 deleted from function.imagettftext by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77043@lists.php.net to get a copy of this message
Note Submitter: DarkCryst ---- 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.

« previous php.notes (#77043) next »