# Textfield max font size - please help me b4 I lose it!

**URL:** https://forum.kirupa.com/t/textfield-max-font-size-please-help-me-b4-i-lose-it/249250
**Category:** flash
**Created:** [January 16, 2008, 10:35pm UTC](https://forum.kirupa.com/t/textfield-max-font-size-please-help-me-b4-i-lose-it/249250 "2008-01-16T22:35:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jaemo](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jaemo](https://forum.kirupa.com/u/jaemo)
#### Post date: [January 16, 2008, 10:35pm UTC](https://forum.kirupa.com/t/textfield-max-font-size-please-help-me-b4-i-lose-it/249250/1 "2008-01-16T22:35:14Z")

</div>

Hi there…

trying to build a Textfield dynamically in AS2/F8. I can’t seem to get the text size to be larger than 127, and I am wondering if there is an upper limit when building them in AS.

I have a class that has the following static method, which works well (for any size less than 127 apparently) If I pass in 200 as my nSize arg, when I trace(t.getTextFormat(0,1).size) i get 127 every time.

```auto
 public static function makeTextbox(target, clipName, depth, w,h,fontSymbol, nColor,nSize,txValue){
        var t = target.createTextField(clipName+"-tx",depth,0,0,w,h);
        t.type="dynamic";
        t.embedFonts=true;
            var fmt:TextFormat = new TextFormat(); 
            with (fmt) {
              font=fontSymbol;
                color=nColor;
                size=nSize;
        }

        t.setNewTextFormat(fmt);    
        t.text=txValue;            
        return(t);
    }

```

Any thoughts or is there a hidden rule I don’t know about here?
