Using FP 5.1P2b with Acrobat 8 on an Intel Mac 10.5.2.
I am having an issue with a rule from a standing job that I have been using
for over a year. I believe this is the first time I have used this rule
since upgrading to 5.1 though.
This is the rule that I am using:
return CopyfitLine("", Field("ProdEmail"), "Times", 12, 125, 6, false);
and here is the error dialog box I get when trying to save or validate the
rule:
uncaught exception: Error in function CopyfitLine: Font assets file is not
found. Only system fonts will be used for this job.
Failed to open file /Library/Application Support/Printable/FusionPro
Failed to open file /Library/Application Support/Printable/FusionPro
I know that I see that 'Font assets file is not found' when I compose any
job now, but I thought that was just an alert, not an error.
I also tried Dan Korn's rewrite of the copyfit line rule, which gave the
same error.
---
function CopyfitLineWithMagnifyTag(line, widthInPoints, AllowToExpand) {
var tm = new FusionProTextMeasure;
tm.CalculateTextExtent(line);
if (tm.messages)
ReportError("CopyfitMagnifyLine: " + tm.messages);
if (tm.textWidth < widthInPoints*100 && !AllowToExpand)
return line;
var factor = Round(widthInPoints / tm.textWidth * 10000, 0) - 1;
return "<magnify type=setwidth factor=" + factor + ">" + line +
"</magnify>";
}
//specify all the font and size information with tags
//so a call would look something like this:
return CopyfitLineWithMagnifyTag('<f name="Times">' + '<z newsize=12>' +
Field("ProdEmail"), 360);
//add the optional third parameter of "true" to allow the text to get
bigger, like so:
//return CopyfitLineWithMagnifyTag('<f name="Times">' + '<z newsize=12>' +
Field("ProdEmail"), 360, true);
---
If I don't use either of the rules above, and just set the whole text box to
adjust text to fit, then it works, but of course ALL of the text in the box
gets scaled, not just the specific line I want scaled.
Any ideas? Thanks.
--
Lance Wente
Woolverton Printing
Cedar Falls, IA 50613
319.277.2616
800.670.7713
www.woolverton.com
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
FusionPro 5.0 Now Available!
Variable text on a curve and soft drop-shadows for variable text
LIMITED TIME upgrade offer of $299 per license for current customers:
http://fusionpro.printable.com/store/upgrade
New licenses available for $599 each at:
http://fusionpro.printable.com/store/
All FusionPro 5.0 customers to receive FusionPro 5.1 with
Adobe Acrobat 8 and InDesign CS3 support when released for FREE.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
--
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
--