Thanks Ray...

-----Original Message-----
From: Raymond Camden [mailto:[email protected]] 
Sent: Saturday, September 11, 2010 3:01 PM
To: cf-talk
Subject: Re: ImageUtils.cfc and CFImage


Ben wrote that portion of imageUtils, but I can say I've seen some
oddities as well. It's using some Java libraries so it may make sense
to google against them and see if you find anything. I believe it's
the JAI library.

(Don't forget - all RIAForge projects have a Contact link which give
you a direct line to the owners for support.)

On Sat, Sep 11, 2010 at 12:00 PM, Eric Roberts
<[email protected]> wrote:
>
> 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:336953
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to