Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

How could I calculate field width of text font characters for dynamic .x .y positioning?

$
0
0

Without getting into RTF, I'd like to simply calculate the width of text as entered into a field, so I can move another field directly adjacent to the end of the text. Character count will not work: "M" is much wider than "i".

 

Would the approach be to load a character width set, and iterate through the text string accumulating width?

 

Are those character tables accessible anywhere from JS?

Thanks in advance. MP

 

 

 


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>