Jump to content

Copyfit rule on seperate textfields


marcusm

Recommended Posts

How do I apply copyfitrule to seperate variable textfields?

 

I have one heading that have to have copyfit with special numbers to work correctly in the Copyfit rule.

 

Then I have a Copyfit rule on producttext that have to have special numbers in the copyfit rule to work.

 

This must be an easy rule to get this to work?

Link to comment
Share on other sites

Are you talking about full-flow copyfitting with the Overflow Options dialog and the OnCopyfit rule? If so, you can name each frame (flow) and apply different copyfitting parameters based on the frame name in the OnCopyfit rule, as described in the section titled, "I want different copyfitting values for different frames" in the FusionPro Rules System Guide. For example:

if (FusionPro.Composition.CurrentFlow.name == "name1")
{
 if (!Copyfit(new MagnifyAttributes("text", 50, 200, 10, 36)))
     ReportWarning("Could not copyfit text in flow " + 
                 FusionPro.Composition.CurrentFlow.name);
}
else if (FusionPro.Composition.CurrentFlow.name == "name2")
{
 if (!Copyfit(new MagnifyAttributes("leading", 25, 400, 10, 100)))
     ReportWarning("Could not copyfit text in flow " + 
                 FusionPro.Composition.CurrentFlow.name);
}
else
{
 // default copyfitting
 if (!Copyfit(new MagnifyAttributes("text", 25, 400, 6, 72)))
     ReportWarning("Could not copyfit text in flow " + 
                 FusionPro.Composition.CurrentFlow.name);
}

Or are you talking about CopyfitLine or a similar per-line copyfitting function?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...