This just shows my ignorance about text overlay. I was hoping there was a way with CF 8 to just tell it what font, size, and text and it would calculate the rest. But, apparently not. CF 9 should definitely incorporate that.
Ray's approach seems to be the best solution of all. It's the only one I know of that integrated into CF and can take only the font, size, and text and provide you with dimensions, from the description we've gotten. I'd definitely check into that. http://imageutils.riaforge.org Rick > -----Original Message----- > From: Kevin Roche [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 26, 2008 10:07 AM > To: CF-Talk > Subject: Re: Centering text written on an image > > >What I'm thinking is trying to avoid determining the > >text width by creating an image of just the text and > >measuring that. > > Yes but how? > > When you create an image in ColdFusion you have to give it a width and a > height. > > If you don't you get an error when you try and use it: > > The image on which the operation was executed is undefined. > An image must have some non-zero positive dimensions for image operations to > be applicable. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311590 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

