# Determine text width?

**URL:** <https://forum.kirupa.com/t/determine-text-width/277742>\
**Category:** flash\
**Created:** [December 16, 2008, 6:08pm UTC](https://forum.kirupa.com/t/determine-text-width/277742 "2008-12-16T18:08:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpann](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tpann](https://forum.kirupa.com/u/tpann)\
**Post date:** [December 16, 2008, 6:08pm UTC](https://forum.kirupa.com/t/determine-text-width/277742/1 "2008-12-16T18:08:53Z")

</div>

Anybody know of a way to programmatically determine – given a single line block of text, its font, its size, etc. – the width in pixels of the text block?

Maybe this wouldn’t be something you’d do in Flash, I dunno.

Thanks!
