I have not used it myself, but I checked and ImageUtils.cfc does have a
DrawTextArea() function. That might be what you are looking for.
Also, for simple line wrapping, you could use a LineBreakMeasurer. A while back
I wrote a sample function that demonstrates how it works.
http://cfsearching.
I am 99% sure at least one of the open source cfc's has an existing function
for wrapping. Maybe check the ImageUtils.cfc ?
-Leigh
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-An
Don't forget you can take a UDF and rewrite it as a custom tag.
Therefore, I'd consider using one of the solutions from cflib.org.
===
Raymond Camden, ColdFusion Jedi Master for Hire
Email: [EMAIL PROTECTED]
WWW : www.c
: David DiPietro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 2:39 PM
To: CF-Talk
Subject: RE: Wrapping Text
Alternately (if HTML)
Put it in a table
#yourText#
No one sees the tables and you have a
that UDF is HUGE. :) I like simple myself.
Anthony Petruzzi
Webmaster
954-321-4703
[EMAIL PROTECTED]
http://www.sheriff.org
-Original Message-
From: Carlisle, Eric [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 2:42 PM
To: CF-Talk
Subject: RE: Wrapping Text
Very nice
Very nice.
Here's another one at CFLib.
http://www.cflib.org/udf.cfm?ID=249
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 2:20 PM
To: CF-Talk
Subject: RE: Wrapping Text
Function to wrap a string before a specific numb
doesn't break in the middle of the word without
having to search for the nearest space etc...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 2:20 PM
To: CF-Talk
Subject: RE: Wrapping Text
Function to wrap a string before a spe
This will take a sting and wrap it @ 90. Just replace or set 'locString' to
the var that contains your data. Is your report text or html? If it's not
html, replace the with #chr(10)##chr(13)#.
In-Reply-To: <[EMAIL PROTECTED]>
Found the CFX_Wrap tag in the Allaire Gallery - does exactly
what I need to produce wrapped text in the email message.
Cheers
Terry
--
Archives: http://www.eGroups.com/list/cf-talk
To U
The WRAP attribute can be used to specify how to handle word-wrapping
display in text input areas in forms.
-- the default setting - Wrapping doesn't happen. Lines
are sent exactly as typed.
-- The display word-wraps, but long lines are sent
as one line without new-lines.
-- The display word
Setting wrap="physical" on the text area might help. There is a tag in the
gallery which will wrap a string, using either CRLF for things like CFMAIL
or or tags for HTML output.
DC
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 06, 2000 18
11 matches
Mail list logo