Jump to content

TextMeasure not working as expected


esmith

Recommended Posts

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;

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