Background: We have a site that uses non-websafe fonts in the generation of banners that contain the name of the company. The company chooses the text and then the font and the font size used in the banner. This is created on the fly, originally using cfx_gfont, but we have been having issues with that crashing and wanted to more to a more native CF solution.
Problem: I am having an issue with the accuracy of the getTextDimensions function where it doesn't seem to take into account all caps and not all fonts are measured properly. With the raw data from it, then using the text_overlay function, some fonts look great (EngraversOldEnglish is one), while most are cutting off the last letter (Baker Signet BT is one of these). TO get the bulk of them to fit, we have to multiply the width by 1.2, but this makes the other fonts (Like Engravers Old English) have a background image that is way too wide. Any idea as to what to do about this or if there is a better method of determining the height and width of a background image needed based on text, font and font size? For instance: ************************* *Joe's Funeral hom* ************************* For baker signet BT If we multiply by 1.2, the above display's great but the below looks like this: ******************************************* *Joe's Funeral Home * ******************************************* For Engraver's Old English (and yes.literally that much extra space) Any help would be greatly appreciated. Eric ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:336951 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

