AnsweredAssumed Answered

Is there any way to get the width of the 'content' of text field?

Question asked by deephat on Jan 2, 2015
Latest reply on Jan 7, 2015 by deephat

I am not referring to the container wdith (or character count) I am trying to get the approximate width of the content. I do not need the exact width but it would be great if I could get within 15% of the actual width in points or pixels.

 

The only solution that I can think of is to measure every possible character width of a specific font, at a specific size, and then create a calculation to add up the total widths of all the characters. It would be a bit of a pain to do it this way but this would be just one more thing in a long list of crazy FileMaker workarounds that I have had to do.

 

text-width-in-pixels.png

Outcomes