esmith Posted January 10, 2013 Share Posted January 10, 2013 I would think that this code would return "Too Verbose!" but it does not. What am I doing wrong? var tm = new FusionProTextMeasure; var frameWidth = 8; // 8 inches tm.pointSize = 16000; // 160 points tm.font = "Helvetica"; tm.useTags = false; tm.CalculateTextExtent("Why is this not working for me in FP 8.2.7?"); var myWidth = tm.textWidth; if (myWidth < frameWidth * 7200) result = "Nice."; else result = "Too Verbose!"; return result; Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted January 10, 2013 Share Posted January 10, 2013 Does it work at composition time? Quote Link to comment Share on other sites More sharing options...
esmith Posted January 10, 2013 Author Share Posted January 10, 2013 Does it work at composition time? Nope. I seem to be in the same boat Hadrian had. tm.textWidth always returns as "0" so long values overflow frame. 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.