Olivier Posted July 4, 2012 Share Posted July 4, 2012 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 Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted July 5, 2012 Share Posted July 5, 2012 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 Quote Link to comment Share on other sites More sharing options...
digitalsig-1.com Posted October 23, 2012 Share Posted October 23, 2012 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? Quote Link to comment Share on other sites More sharing options...
jwhittaker Posted October 23, 2012 Share Posted October 23, 2012 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. 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.