Hi
I've been googling for a solution to this for a number of days now and finally came to phpbuilder and saw an article by Rasmus Lerdorf doing something similar to me.
I am creating PNG images, and part of these images have a barcode. To create the barcode I am simply using a code128.ttf true type font to write text with imagettftext(). However:
The catch is that in order to create the barcode, you use an algorythm to calculate the string to print, based upon the class (A,B or C) of barcode you are using, plus a number of stop/start characters. Because you might need to write all the numbers and letters to the barcode, these stop/start characters are generally outside the normall character set (For example, char(204) which looks like an 'I' with a stripe over it.
On my one server everything works perfectly and I get the barcode displayed. On my other server, however, it doesn't. The "normal" characters appear fine, but the extended characters (like char(204)) appear as a hollow block as though the character isn't in the ttf - which it is, otherwise it wouldn't work on the first server.
On both servers I can display the characters on the command line or send as plain text to the browser - Its only when trying to create the image that there's a problem. I've attached an example of the "bad" barcode.
Thanks for the help.
John 😕