> C Wrote:> Not to rule out other options, but try setting the
> background color when the image object is created: ><cfset
> myImage=ImageNew("",500,20, "rgb", "ffffff")> > Though, I do not think
> you want to create the images every time the page loads.
> That helps, but I still need help. It did do the trick, but is it the
> best solution? I am not going to create it each time. Just each time
> they need new text. I will build an image inventory and check to see
> if the FileExists. I hate the way this will work, but I can't talk
> them into doing it any other way.
>
> I am using a combination of sIFR and this. (I got the sIFR working
> late last night). I don't like any of it, but an Agency created the
> design using ScalaSans everywhere, even with me explaining how text
> resolves. And the site is completely dynamic. Has anyone else run into
> this and found a better solution.
>
> If text comes out of a database dynamically and it must be a
> non-universal font, is there any other solution other than Text to
> Image or sIFR?
>
> Thanks,
>
> ~David Moore
> _________________________________________________________________
> Talk to your Yahoo! Friends via Windows Live Messenger. Find out how.
>
I'm actually going through this process right now of setting up dynamic header
images to replace text headers on a page because they are complaining about
anti-aliasing issues.
My understanding is that the font just needs to be supported by the JDK for
this to work. We've not run into any issues yet, just needed to add them to the
server and reboot. But thankfully they're not asking for anything to out there
in regards to fonts.
You'll want to write the image to the browser instead of saving a new image
each time. action="writetobrowser" format="png" in the cfimage tag.
Pages that helped me ALOT:
+ Transparent Images - The documentation from Adobe on this function isn't the
best, but this page tells you how to create transparent images that are written
to the browser.
http://www.bennadel.com/blog/1045-Creating-Transparent-Images-With-ColdFusion-8-And-ImageNew-.htm
+ Dynamically Replace Text with Image - This is the original script using PHP
and javascript. You won't need the php section, but the javascript is useful.
It will test the browser first to see if it uses images, if it does it'll use
an image instead of text. This keeps the pages 508 compliant.
http://www.alistapart.com/articles/dynatext
+ Sizing the Image to the Text - This is just a great script for allowing the
canvas of the image to be the same size as the text.
http://www.coldfusionjedi.com/index.cfm/2008/1/16/ColdFusion-8-Image-functions-and-text-size
Good luck!
- Mary
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:311908
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4