Otto Posted February 10, 2017 Share Posted February 10, 2017 When copyfit modifies the font size, is there a way to write to the log the font size it reduced it to? Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted February 11, 2017 Share Posted February 11, 2017 If you mean the full-flow copyfitting, where you click "Adjust text to fit" in the Overflow Options dialog (rather than single-line copyfitting with the CopyfitLine function), then No, there isn't. The Copyfit functionality doesn't actually say, "change the point size to X points." It actually says, "magnify the point size of all of the text by X percent", by putting a <magnify> tag in front of all the content of the flow. This allows text with various point sizes in the flow to be copyfitted proportionally, so if, say, you have a mixture of 20 point and 10 point text, it still keeps that 2 to 1 ratio when copyfitted, maybe ending up at 16 point and 8 point. You can limit both the largest and smallest magnification factor, and the absolute largest and smallest point size, that can be applied during copyfitting, by tweaking the values in the MagnifyAttributes object in the OnCopyfit rule. If you can give me a better idea of what you're ultimately trying to accomplish, I might be able to suggest something more specific. Quote Link to comment Share on other sites More sharing options...
Otto Posted February 13, 2017 Author Share Posted February 13, 2017 I needed to know from processing 200,000 records, what is the smallest font size it can run without truncating. The text box is all one font size. I may just have to run it at the different font size with no copyfit to see when it stop truncating. Run 10pts, then run 9pts, ... down to 6 pts which is my smallest font allowed. 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.