> I have been *sorta* following this and If I understand the
> problem correctly you might want to to look at the Alagad 
> imagecomponent. 

Yep. You are understanding it correctly. It is _essentially_ doing the same 
thing as GetTextDimensions(). But it uses TextLayout (my personal preference) 
instead of FontMetrics. It also returns a little more detail: "ascent", 
"decent" and "leading". Though those values could be added to 
GetTextDimensions().

Out of curiosity, I tried getSimpleStringMetrics() with "BakerSignet BT Roman" 
and it actually returns the same results as ImageUtils.cfc.  At least it does 
once you make the code changes I mentioned in my previous response ;-)


Image.cfc
=========
ASCENT 23  
DESCENT 8  
HEIGHT 31  
LEADING 0  
WIDTH 193  

ImageUtils.cfc
=========
HEIGHT 31  
WIDTH 193  



      

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:337022
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to