I'm rendering text onto an image using the System.Drawing.Graphics class, and the DrawString() method.
I need to generate the text for this image in a very specific way so that it exactly - pixel for pixel - matches an existing image.
The problem is that the text generated by DrawString() has a different kerning to the text in the existing image (my best guess is approximately 0.5 - 1 pixel per letter).
Can anyone tell me if it's possible to modify the kerning while using this namespace and method?
Also, it's a custom font that we're using and we had to convert this from open-type (which the source image used) to true-type. Might the kerning have been modified at this stage?