# Change font-size dynamic text field / number of characters

**URL:** https://forum.kirupa.com/t/change-font-size-dynamic-text-field-number-of-characters/331760
**Category:** Uncategorized
**Created:** [October 14, 2013, 4:20pm UTC](https://forum.kirupa.com/t/change-font-size-dynamic-text-field-number-of-characters/331760 "2013-10-14T16:20:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![denigris](https://avatars.discourse-cdn.com/v4/letter/d/e47c2d/32.png) [@denigris](https://forum.kirupa.com/u/denigris)
#### Post date: [October 14, 2013, 4:20pm UTC](https://forum.kirupa.com/t/change-font-size-dynamic-text-field-number-of-characters/331760/1 "2013-10-14T16:20:26Z")

</div>

Hi, i have that problem: i have got one file flash with a dynamic text field (the text content is written in a xml file connetted). I wish set that font-size of text field will change when the number of characters will change. For example, if the string is done by a number of characters between 1 to 15 my font-size will be 175 px and the interline will be 200 px. More number of characters, less font-size. Short texts will be bigger than long texts.

My xml is:

\<?xml version=“1.0”?\>

\<user\_messages\>  
\<1\>  
\<name\>#hashtag\</name\>  
\<name\> **pippo** \</name\>  
\<name\>News + Eventi\</name\>  
\<name\>Comunicazione\</name\>  
\<name\>Contract\</name\>  
\<name\>Registrazione\</name\>  
\</1\>  
\</user\_messages\>

**pippo** is the string that must be change font-size

How can i do? Thanks for the supprt, please help me !!!  
bye betta 🙂
