Heh, seems like I've constantly been on at you guys for advice recently. I'm glad this forum's such a useful place though.
I was writing a bit of code to some fancy string drawing effects (resize, fly in, fade in one at a time ect....), but hit a bit of a snag.
The textwidth command works great on a whole string, but doesn't get the font positions right doing it one character at a time. Some font's are a bit off, some are all over the place, but none work quite right. I know this is almost certainly down to the font files themselves.
But is there a way to access the font's positioning info? Can't remember the proper name for it, but basically the stuff that tells you where in pixels (or points or whatever it's measured in) each letter should follow on.
I could get around the problem with a laborous readpixel on each letter, but I'm hoping there's a solution that's a bit more direct.
I was writing a bit of code to some fancy string drawing effects (resize, fly in, fade in one at a time ect....), but hit a bit of a snag.
The textwidth command works great on a whole string, but doesn't get the font positions right doing it one character at a time. Some font's are a bit off, some are all over the place, but none work quite right. I know this is almost certainly down to the font files themselves.
But is there a way to access the font's positioning info? Can't remember the proper name for it, but basically the stuff that tells you where in pixels (or points or whatever it's measured in) each letter should follow on.
I could get around the problem with a laborous readpixel on each letter, but I'm hoping there's a solution that's a bit more direct.