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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...