Reading leocharre's suggestion, you'll find that GD::Image::stringFT() can be used for True Type fonts.
In reply to Re: GD string size by alexm in thread GD string size by Anonymous Monk