# TextArea font size problem

**URL:** https://forum.kirupa.com/t/textarea-font-size-problem/299616
**Category:** Uncategorized
**Created:** [November 8, 2009, 7:03am UTC](https://forum.kirupa.com/t/textarea-font-size-problem/299616 "2009-11-08T07:03:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kadaj](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kadaj/32/9061_2.png) [@kadaj](https://forum.kirupa.com/u/kadaj)
#### Post date: [November 8, 2009, 7:03am UTC](https://forum.kirupa.com/t/textarea-font-size-problem/299616/1 "2009-11-08T07:03:30Z")

</div>

Hi friends,  
I have two instances of the TextArea on my stage named input\_txt and output\_txt.  
I type inside the input\_txt textarea and gets output inside the output\_txt.

By default the TextArea font is very small.  
So to increase its font, what’s done is:

```auto

var tf:TextFormat = new TextFormat();
tf.size = 12; //font size
input_txt.setStyle("textFormat", tf); //increase font size
output_txt.setStyle("textFormat", tf); **// Problem is here. The font size is 2 added to the font size of the input_txt**.

```

what ever the size tf.size is input\_txt font is same but output\_txt font is the next size of the font.  
So here I get output\_txt fonts as 14.

What might be the problem?  
Or any other better ways of doing it?  
Please help.  
Thank You.

I found another way right now.  
its like:

```auto

var tf:TextFormat = new TextFormat("Monaco", 12);

```

giving the font name and size as parameters.  
So this works. But wondering what the problem might be to the above method?
