# Problem with changing font size

**URL:** https://forum.kirupa.com/t/problem-with-changing-font-size/210046
**Category:** Uncategorized
**Created:** [December 14, 2006, 12:42pm UTC](https://forum.kirupa.com/t/problem-with-changing-font-size/210046 "2006-12-14T12:42:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sivant](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@sivant](https://forum.kirupa.com/u/sivant)
#### Post date: [December 14, 2006, 12:42pm UTC](https://forum.kirupa.com/t/problem-with-changing-font-size/210046/1 "2006-12-14T12:42:17Z")

</div>

i have two dynamic textFields that i load text set the font and the size:

```auto
if (myFormat.font == 'Kanuba') {
   myFormat.size =12;
  } else {
   myFormat.size = 22;
  }
  if (txtNode.attributes['font2'] == 'Kanuba') {
   myFormat2.size = 20;}

```

.  
my problem is that in myFormat2.size = 20; it dosent change and “stuck” on size 12  
how can i solve this?
