# FMX- determine real length of phrase in pixels

**URL:** <https://forum.kirupa.com/t/fmx-determine-real-length-of-phrase-in-pixels/55880>\
**Category:** flash\
**Created:** [June 28, 2004, 7:16pm UTC](https://forum.kirupa.com/t/fmx-determine-real-length-of-phrase-in-pixels/55880 "2004-06-28T19:16:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![borispc](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@borispc](https://forum.kirupa.com/u/borispc)\
**Post date:** [June 28, 2004, 7:16pm UTC](https://forum.kirupa.com/t/fmx-determine-real-length-of-phrase-in-pixels/55880/1 "2004-06-28T19:16:25Z")

</div>

Hello!

I am wondering if anyone knows a way to determine the real length in pixels that a phrase uses.  
The problem lies on the fact that every character does not take the same space (x pixels).  
Let’s say I have a dynamic text field and I want to know how many pixels does the sentence use.  
i.e:

is not the same to have:  
phrase #1 =iiiiiiiiii  
than  
phrase #2 =wwwwwwwwww

even though both are using 10 characters.  
What is the most precise way to find this out?  
thanks.
