Jump to content

Recommended Posts

Posted

Good Morning!

 

I have a business card layout that uses the Horizontal Scale option in In Design. It uses 75% Helvetica Light.

 

Is there a way to use horizontal scaling in a Fusion Pro rule?

 

All help will be much appreciated!

Posted

Check out page 50 on the TagsRefGuide.pdf in the FusionPro documentation.

 

Sounds like you're looking for the "setwidth" tag. It's set in points (not percentages) so if you have a 12 pt font, to get a 75% width using the setwidth tags, you'd have to specify 9 points:

return 'Regular text <setwidth newsize="9">text that is 75% the width. <setwidth newsize="12">Back to regular text.';

 

Note that there is not a closing tag for "setwidth" so you'll need to set it back to the original width if you don't intend for everything that follows it to have a width of 9 points. You could also create a function to do this for you:

function SetWidth(text, percentage, size) {
 var size = size || 12;
 var percentage = percentage || 1;
 var width = size*percentage;
 return '<setwidth newsize="' + width + '">' +
   text + '<setwidth newsize="' + size + '">';
}

return 'some regular text' + SetWidth('some text that is 75% the width', 0.75, 12) + 'some regular text ' + SetWidth('some text 150% wider', 1.5, 12);

Posted
Note that there is not a closing tag for "setwidth" so you'll need to set it back to the original width if you don't intend for everything that follows it to have a width of 9 points. You could also create a function to do this for you:

Or you could just do this:

return 'Regular text <magnify type=setwidth factor=75>text that is 75% the width. </magnify>Back to regular text.';

Posted

So the "magnify" closing tag will shut off ALL attributes that are set after the opening tag? No matter how many or what style? Or do you still need the closing tags for styles such as "bold" or "superscript"? What about settings such as a temporary setting for the superscript size and offset?

 

Or does "magnify" just create a sort of formatting sub-routine section and the closing magnify tag simply closes this sub-routine and reverts the style and settings back to those of the original text box?

.

Posted
Or you could just do this:

return 'Regular text <magnify type=setwidth factor=75>text that is 75% the width. </magnify>Back to regular text.';

 

Sure, but where's the difficulty in that? ;)

 

So the "magnify" closing tag will shut off ALL attributes that are set after the opening tag? No matter how many or what style? Or do you still need the closing tags for styles such as "bold" or "superscript"? What about settings such as a temporary setting for the superscript size and offset?

 

Or does "magnify" just create a sort of formatting sub-routine section and the closing magnify tag simply closes this sub-routine and reverts the style and settings back to those of the original text box?

 

I'd say it's closer to the latter of those two options. The "magnify" tag doesn't really alter the values of any previously set tags, it just applies magnification (pardon the redundancy) of a certain type – text, textwidth, textheight, leading, or tracking. I believe it's the tag that FusionPro applies behind the scenes when a text flow is copy-fitted. More information can be found on page 66-67 of the TagsRefGuide.pdf of the FP documentation.

Posted

Thanks for all of the help!

 

I used the following and it worked:

if (Field("Address") != "")
   return '<magnify type=textwidth factor=75><z newsize=8.06>'+ Field("Address")+'</magnify>';
   else return ""

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...