traba5058 Posted April 13, 2016 Posted April 13, 2016 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! Quote
step Posted April 13, 2016 Posted April 13, 2016 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); Quote
Dan Korn Posted April 13, 2016 Posted April 13, 2016 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.'; Quote
DSweet Posted April 14, 2016 Posted April 14, 2016 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? . Quote
step Posted April 14, 2016 Posted April 14, 2016 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. Quote
traba5058 Posted April 14, 2016 Author Posted April 14, 2016 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 "" Quote
Recommended Posts
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.