Terry,
The examples on the website say if you are using it with CFWheels you just
[call the] getArt() function since it is made available to your controllers and
views.. Otherwise, you need to create an instance of the component first and
call init(). Then use yourInstance.getArt() instead of
Leigh,
Here is my test page using the Basic Example as you said:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleUntitled/title
/head
body
cfset wordart = createObject(component, wordart).init() /
cfoutput
#wordart.getArt(CFWheels is the future and the
{font=LinLibertine, fontstyle=bolditalic, fontSize=30}
Terry - Works perfectly with CF9. Any chance you are using CF8? I do not think
implicit structures were supported in function calls until CF9.
~|
Order the Adobe
Yes, I thought I stated that somewhere in the original thread.
I tried it in CF9 and it works, thank you a bunch leigh for putting up with
my lack of knowledge.
So this cfc will not work using CF8 or could you show me a way to call it in
there?
Terry
LEIGH,
This is crazy again.
I uploaded the folder with the test.cfm and the cfc to a CF9 server and as I
said it worked.
I sent you my last reply stating that.
Went back and reran the file and I get red x's where the demo images were
but the plain text is there net to the red x.
I deleted the
No worries. It was a fun question .. and I learned something new myself. While
perusing the cfc source I figured out how to create the outer stroke effect :)
So this cfc will not work using CF8
I think it should work if you get rid of the CF9 specific syntax. But you would
have to try it
and the png images with superlong filenames are there.
I then hand typed the url to the images and they displayed perfectly.
The url in the generated image tags is probably pointing to the wrong location.
You can change the defaults for the various paths in the init() function: ie
init(
Leigh it went from better to worse.
I said it worked when I put the 3 files in a folder off wwwroot called
wordart in my laptop with CF 9.
It works perfectly.
I then uploaded it to my windows 2003 server with CF 9 into a sub folder
called wordart in my website.
It worked PERFECTLY ONCE. now if I
Terry - Sorry, I have no clue about a cause. But the error sounds vaguely
familiar. Check the CF bug database.
~|
Order the Adobe Coldfusion Anthology now!
Gerald,
Thank you almighty Digital Pack Rat smiling
Really Thank you. I haven't opened it yet, but I am on my way.
Terry
-Original Message-
From: Gerald Guido [mailto:gerald.gu...@gmail.com]
Sent: Sunday, February 19, 2012 6:55 PM
To: cf-talk
Subject: Re: Adding a border to text using
Leigh,
I removed the 2 lines and pasted in the example lines with a semi colon at
the end.
The result is a solid image, but no stroke.
Here's what I added:
// color in the text
Color = createObject(java, java.awt.Color);
graphics.setColor( Color.decode(##80aa1c) );
graphics.fill(
Gerald,
I cannot believe all the things this cfc is supposed to do, but it keeps
throwing errors about missing arguments and I can't find anything wrong.
Missing argument name
C:\inetpub\wwwroot\1wordart\index.cfm: line 105
103 : Output:
104 : p
105 : #wordart.getArt(text=CFWheels is
That sucks. Sorry about that. I have no idea. Like I said. I just found
it :)
G!
On Mon, Feb 20, 2012 at 9:35 AM, Terry Troxel terry.tro...@gmail.comwrote:
Gerald,
I cannot believe all the things this cfc is supposed to do, but it keeps
throwing errors about missing arguments and I can't
Terry,
I do not see anything obviously wrong. Other than the very last line, it looks
the same. Here is the complete test code I used on CF8/CF9. The result is
green text with a purple-ish border
-Leigh
cfscript
width = 330;
height = 150;
text = Crossfade;
// Create
This is the complete code which displays the text perfectly in GREEN with NO
border.
I am at a loss.
Terry
cfscript
width = 330;
height = 150;
text = Crossfade;
// Create a new image that supports transparency
transparentImage = ImageNew(, width, height, argb);
graphics
You are missing the code that draws the actual border.
// create a thin border
stroke = createObject(java, java.awt.BasicStroke).init( 1 );
graphics.setStroke( stroke ); // ** this line is missing
graphics.setColor( Color.decode(##80) ); //** this line is missing
Thanks Leigh,
I finally got it all pieced together and it works as you said it would.
Is there anywhere I can find documentation that will allow me to resize the
fontsize and the stroke width and maybe make the stroke go outside instead
of inside?
Obviously I am not a java pro like you and I do
I finally got it all pieced together and it works as you said it would.
Well the code may have gotten a bit garbled somewhere, adding to the confusion.
Sorry about that.
maybe make the stroke go outside instead of inside?
What do you mean by outside?
The font and stroke width can be
I finally got it all pieced together and it works as you said it would.
Is there anywhere I can find documentation that will allow me to resize the
fontsize and the stroke width and maybe make the stroke go outside instead
of inside?
Check out the Alagad Image Component
things and
understand it better as I am no java programmer, just a half-assed
Coldfusion scripter that enjoys the heck out of this stuff.
Terry
-Original Message-
From: Leigh [mailto:cfsearch...@yahoo.com]
Sent: Monday, February 20, 2012 2:56 PM
To: cf-talk
Subject: Re: Adding a border
Is that a better explanation?
Yep. If you think about how the border effect is created, the behavior makes
sense. Basically you are working with a glyph, or a shape of the text. Stroking
affects how that shape is filled. It does not change the shape itself. So the
thickness has to move
Lei-
Exactly right.
In Photoshop its done with layers and stroke and the stroke can be
Inside, outside and middle.
I just sent a request to sam...@codecurry.com asking if his wordart.cfc is
still active and open source.
Hopefully he will reply as the documentation as to what it can do is awesome
Check out the Alagad Image Component
Yeah, I was going to suggest taking a look at existing image components. Do you
know if it supports text borders? Nothing jumped out at me from a brief look at
the documentation.
-Leigh
I just sent a request asking if his wordart.cfc is
still active and open source.
Great. I would be curious if there are any updates.
BTW: Did you try using the non-cfwheels syntax ie wordArt.getArt()?
Because that worked fine for me.
-Lei
Leigh,
All I did was to run the index as is.
I do not know where to change the syntax which is probably why I am getting
errors.
Terry
~|
Order the Adobe Coldfusion Anthology now!
Terry,
I remember seeing something about that a while and tried to hunt it up for
you. I could not remember the name of it so I could not find it via the
google... I was cleaning out my hard drive just now and I ran across it...
Talk about dumb luck. w00t!!!
This is the site with some docs and
This is the site with some docs and demos:
Wow .. that is very cool! I was about to post a simple example from an old blog
entry, but that totally blows mine out of the water.
Three cheers for the digital pack rat ;-)
-Leigh
I was about to post a simple example from an old blog entry,
Post it anyways. I am curious.
Wow .. that is very cool!
Init() though? That is some bad ass code fu.
G!
On Sun, Feb 19, 2012 at 10:10 PM, Leigh cfsearch...@yahoo.com wrote:
This is the site with some docs and demos:
Wow
Post it anyways. I am curious.
I skimmed the cfc and it is essentially doing the same things internally. Just
more and a lot fancier :) It grabs the underlying graphics and uses draw(),
setStroke(), etcetera to fill in the text, create borders, etcetera.
Here is an old entry on creating a
With a few small changes, it could fill in the text shape with one color and
use setStroke to create a border of another color:
ie Change these two lines:
graphics.setColor(textColor);
graphics.draw(shape);
... to something like this
// color in the text
Color =
to
the list.
Eric
-Original Message-
From: Leigh [mailto:cfsearch...@yahoo.com]
Sent: Sunday, February 19, 2012 9:59 PM
To: cf-talk
Subject: Re: Adding a border to text using CFImage
With a few small changes, it could fill in the text shape with one color
and use setStroke to create
31 matches
Mail list logo