I'm having trouble with some copyfitting. Here is the code I am using:
var StaticPart = ""; //This text will not copyfit.
var DynamicPart = Rule("DetermineLogoLines"); //This text will copyfit.
var TextFont = "Formata Light";
var FontSize = 7.5;
var MinFontSize = 1;
var AdjustWidthOnly = false;
if (Rule("DetermineLogoLines") != "")
return CopyfitLine(StaticPart,DynamicPart,TextFont,FontSize, Round(Rule("LogoHeadingLength") / 100,0), MinFontSize, AdjustWidthOnly);
else
return "";
Based on the length of the first line of text, a right aligned tab is set, then the second two lines of text are copyfitted from the edge of the box to the point where the tab is.
This seems to be working when there is little or no copyfitting required. However when it needs to copyfit, the minimum font size is always returned.