# Get Current FontSize

**URL:** <https://forum.kirupa.com/t/get-current-fontsize/196435>\
**Category:** flash\
**Created:** [August 8, 2006, 12:47pm UTC](https://forum.kirupa.com/t/get-current-fontsize/196435 "2006-08-08T12:47:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevmann16](https://avatars.discourse-cdn.com/v4/letter/k/2acd7d/32.png) [@kevmann16](https://forum.kirupa.com/u/kevmann16)\
**Post date:** [August 8, 2006, 12:47pm UTC](https://forum.kirupa.com/t/get-current-fontsize/196435/1 "2006-08-08T12:47:45Z")

</div>

Hi,  
I have a dynamic text box called artOne that I want to allow the user to decrease and increase the text size whenever they want. I can set up small, default and large options but I would prefer to have - & + buttons to decrease/increase the current font size by 2 points.  
I know a bit of flash and understand using new TextFormat() like below

```auto

myLargeFormat = [COLOR=#000087]new[/COLOR] TextFormat();
myLargeFormat.[COLOR=#000087]font[/COLOR] = "[COLOR=blue]Arial[/COLOR]";
myLargeFormat.[COLOR=#000087]size[/COLOR] = 34;
myLargeFormat.[COLOR=#000087]color[/COLOR]=0xCCCCCC;
artOne.[COLOR=#000087]setTextFormat[/COLOR](myLargeFormat);

```

so I throught I could get the current font size

```auto

interval = 2;
tempSize = artOne.size;

```

then in the code above have the line

```auto

mytextFormat.[COLOR=#000087]size[/COLOR] = tempSize + interval;

```

but artOne.size returns no value so how would I get this value to use in the code.
