Jump to content

Horizontal Scale on text


Recommended Posts

Hi friends,

is there a way to define a rule to adjust the horizontal scale of a variable text to fit in a frame ? Sometimes result is better than simply adjust the font size.

 

Thanks for any advice !

 

Olivier Giroud

FusionPro VDP Designer 8.0.13

Mac OS 10.6.8

Acrobat Pro 9

Marcom Central

Link to comment
Share on other sites

Yes, you can use the <setwidth newsize=***> tag to modify the widths of characters. You can also set the seventh (last) parameter of the CopyfitLine function to true to modify just the widths. For example:

return CopyfitLine("", Field("Your Field Name"), "Arial", 20, 200, 6, [color=SeaGreen]true[/color]);

 

More about CopyfitLine here:

http://forums.pti.com/showpost.php?p=6251&postcount=3

Link to comment
Share on other sites

  • 3 months later...
Yes, you can use the <setwidth newsize=***> tag to modify the widths of characters. You can also set the seventh (last) parameter of the CopyfitLine function to true to modify just the widths. For example:

return CopyfitLine("", Field("Your Field Name"), "Arial", [color="Red"][size="4"]20, 200, 6[/size][/color], [color=SeaGreen]true[/color]);

What do those numbers mean? 20, 200, 6 I mean. Is 20 the horizontal percentage, 200 the tracking/kerning and 6 the point size?

Link to comment
Share on other sites

return CopyfitLine("", Field("Name"), "Adobe Garamond Pro", 20, 137, 6, false);

 

The parameters to CopyfitLine, in order, are:

• staticPart - text to not be resized

• dynamicPart - text to be resized (after staticPart)

• font - font family name

• size - base point size (in points)

• width - width of the frame or column (in hundredths of points)

• minimum - minimum point size (in points)

• adjustWidthOnly - true/false (optional - see below)

For the "adjustWidthOnly" parameter, if you leave it off (or specify false), the function will adjust the point size, that is, both the width and height, of the glyphs. If you specify true, the function will adjust only the set width of the glyphs, but not the height, which basically means they will look squished horizontally.

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