# textFormat Issues!

**URL:** <https://forum.kirupa.com/t/textformat-issues/154917>\
**Category:** flash\
**Created:** [July 13, 2005, 3:46pm UTC](https://forum.kirupa.com/t/textformat-issues/154917 "2005-07-13T15:46:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LJF](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@LJF](https://forum.kirupa.com/u/LJF)\
**Post date:** [July 13, 2005, 3:46pm UTC](https://forum.kirupa.com/t/textformat-issues/154917/1 "2005-07-13T15:46:22Z")

</div>

First time poster so bear with me…

I’m creating a textfield dynamically and populating it with xml data. I’m then applying some formating with the textFormat class using variables also defined in my xml document, kinda like so…

```
	var c2SlashF:TextFormat = new TextFormat();
	c2SlashF.font = s2txtFont;
	c2SlashF.bold = s2txtBold;
	c2SlashF.size = s2txtSize;
	c2SlashF.italic = s2txtItalic;
	c2SlashF.align = s2txtAlign;
	c2SlashF.color= s2txtColor;
	this.slash_txt.setTextFormat(c2SlashF);

```

The problem is when I run the movie, the boolean values (bold and italic) have been ignored. No matter what I define in the xml document, my text remains bolded and italicised!  
Has anyone experienced anything similar? and if so, have you found a fix?
