Yeah...some of them do, but it is taken care of in the code where it sends bold, italics, and bolditalics.
I still haven't got this to work right. I even tried another method using java.awt.font.TextLayout, which is supposedly more accurate, but still had the same issues. With text layout you have to further differentiate bold and italics as a BitOr operation... The page that I saw that on, the blogger said that CF and Java treat images a little differently, so I wonder if it isn't something equivalent to the difference between a point value and a pixel value in CSS? Going with the raw values returned by getTextDimensions and feeding that into ImageDrawText, some fonts are not horizontally centered properly, cutting off either the top or bottom of the text and some fonts have the last letter cut off or too much space to the right. Some are perfect. Go figure. I also noticed that the longer the text, the wider the extra space gets, which is what leads to think it has to do with whatever the diff is between Java and CF (one would think there wouldn't be a diff...) Here's the blog that referenced using TextLayout rather than FontMetrics... http://cfsearching.blogspot.com/2008/01/measuring-image-text-width-and-heigh t.html -----Original Message----- From: Leigh [mailto:[email protected]] Sent: Monday, September 13, 2010 10:17 AM To: cf-talk Subject: RE: ImageUtils.cfc and CFImage Any chance you are using a style other than "plain" (ie bold, italics, etcetera)? I think the logic needs a slight adjustment for those styles. -Leigh ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336983 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

