Hi,
I've managed to get GD working (mostly anyway) on my site - and am utilising the "imagettftext" function.
I am using this function to display individual characters on my website - with a nominated Font.
However, sometimes the characters in my StringText are not supported by the particular font that I am using ...
Directly from http://www.php.net/manual/en/function.imagettftext.php
imagettftext
"If a character is used in the string which is not supported by the font, a hollow rectangle will replace the character."
Can anyone suggest some code that would:
1) compare/look at the StringText supplied within the "imagettftext" function (in my case the StringText will comprise of a single character only)
2) where the supplied StringText (ie character) is NOT supported by the font, then I need for that character to be reported as not supported. ie. either; return a flag or skip the non-supported character entirely - rather than displaying the standard "hollow rectangle".
😕
many thanks everyone !!
cheers
Jamie