Forum Moderators: coopster

Message Too Old, No Replies

Standard text box size using gd

         

bleak26

12:29 pm on Feb 23, 2006 (gmt 0)

10+ Year Member



Is there a method for getting the bounding box of a normal text font using gd?

I can find it for ttf fonts but not for just the standard fonts.

Once again, thanks.

coopster

5:16 pm on Feb 23, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



imageftbbox [php.net] -- Give the bounding box of a text using fonts via freetype2
imagepsbbox [php.net] -- Give the bounding box of a text rectangle using PostScript Type1 fonts
imagettfbbox [php.net] -- Give the bounding box of a text using TrueType fonts