Our dev server has recently been updated to PHP v5.2.13. With this update, we found that our png images have problems with kerning (letter spacing). We tried many fonts and have not yet found a solution.
We create images using the GD library and write text to images using font files and imagettftext () or imagefttext () functions.
Has anyone else come across this? Am I misunderstanding something, or should it be sent to PHP as an error? Are there any cool workarounds that I haven't thought about?
Here is an example of a new and new fat tachoma. Other fonts (bold and non-bold) have the same problem. Some letters and numbers seem off-center or something like that.
Bad - New PHP
Good old PHP v5.2.11 (the words are slightly different, because this is our development server, and the other is a live server)
php image gd
Neil neyman
source share