Well, the built-in CopyfitEmail function only shrinks the text.  But you
can certainly write a different function to break the line at the "@"
symbol if you want.  For example:

  function CopyfitEmailBreakLine(eaddr, font, size, widthInPoints)
  {
    var tags = "<f name=\"" + font + "\">" +
              "<z newsize=" + size + ">" + eaddr;
    var tm = new FusionProTextMeasure;
    tm.maxWidth = widthInPoints*100;
    var retcode = tm.CalculateTextExtent(tags);
    if (tm.messages)
      ReportError("CopyfitEmailBreakLine: " + tm.messages);
    if (tm.textLines == 1)    
      return eaddr;
      
    var AtSymbolPos = eaddr.indexOf("@") + 1;
    if (AtSymbolPos <= 0)
      ReportError("CopyfitEmailBreakLine: invalid email address");
      
    return eaddr.substring(0, AtSymbolPos) + "<br>" +
            eaddr.substring(AtSymbolPos);
  }

You can call it like so:

  return CopyfitEmailBreakLine("[EMAIL PROTECTED]", "Arial", 12, 72);

Dan


+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Calling all FP Web Users!

Do you have a question or lots of knowledge to share about FusionPro Web?

If so, join our Printable Web to Print Users' Forum today!

Send email to [EMAIL PROTECTED] to find out how!
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-


--
Users of FusionPro Desktop have unlimited free email support. Contact Printable 
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm

--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--


--
Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com
--

Reply via email to