EricC Posted July 6, 2012 Share Posted July 6, 2012 How can I write a rule that sets my "title" field to always be 20% smaller (or 2 points smaller) than the "name" field? Is it possible to scale text relative to another line of text? I want the "name" field to be 10 points (for example) I want the "title" field to be 8 points. But if the person types in a really long name (and because I have copyfit enabled), when FusionPro scales down the name, I also want the title to be scaled down as well. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted July 6, 2012 Share Posted July 6, 2012 If the entire flow is being copyfit, then you don't have to do anything special. Just set the name in 10 points and the title in 8 points, and Copyfitting will scale everything proportionally. Quote Link to comment Share on other sites More sharing options...
EricC Posted July 6, 2012 Author Share Posted July 6, 2012 I guess sometimes I like to over-complicate things ;-) That gives me exactly what I want. I was trying to return the 'name' field plus the 'title' field and scale down the title field all in one rule, like this: return Field("name") + ", " + "<z newsize=8>" + Field("title"); now I can get rid of that rule altogether. Thank you! Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted July 6, 2012 Share Posted July 6, 2012 That gives me exactly what I want. I was trying to return the 'name' field plus the 'title' field and scale down the title field all in one rule, like this: return Field("name") + ", " + "<z newsize=8>" + Field("title"); now I can get rid of that rule altogether. Right, you don't need a rule at all in this case. However, if you run across a case where you do need a rule, so that you can change the point size of one field in the Text Editor and have the other field always be a percentage of that size, then you can use the <magnify> tag, like so: return Field("name") + ", " + '<magnify factor="80" type="text">' + Field("title") + '</magnify>';Refer to the Tags Reference for more information. Quote Link to comment Share on other sites More sharing options...
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.