Jump to content

Scale text proportionally


EricC

Recommended Posts

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...