Hadrian Posted August 23, 2011 Share Posted August 23, 2011 Looked at some of the other threads and i must be missing something because i keep getting the line i want to fit in one line wrapping. I am using FP 6.2 and the box width is 1.59 inches which equates to 11412 in hundredths of a point. return (copyfitLine("", Field("sender"), "Times LT Std", 12, 11412, 5) If i am to understand this correctly it should be resizing to fit into one line and dropping the font size to a minimum of 5 pts if it cannot accommodate 12 pts? Any help would be appreciated. Link to comment Share on other sites More sharing options...
jwhittaker Posted August 23, 2011 Share Posted August 23, 2011 Hadrian The wording is very unclear for the size requirements. It shouldn't say: • width - width of the frame or column (in hundredths of points) I think it should say: • width - width of the frame or column (in points but will recognize hundredths of point) Try putting in 114.12 instead of 11412 for the width. Jon Link to comment Share on other sites More sharing options...
Hadrian Posted August 23, 2011 Author Share Posted August 23, 2011 Ah I see....i tried it in points and it worked. Be nice if the documentation covered these objects.....thanks Jon Link to comment Share on other sites More sharing options...
jwhittaker Posted August 23, 2011 Share Posted August 23, 2011 Hadrian I found this documentation for the copyfit that breaks it all down to each part if this helps. Jon 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.