# Html-enabled textArea: how to set fontFamily?

**URL:** <https://forum.kirupa.com/t/html-enabled-textarea-how-to-set-fontfamily/57114>\
**Category:** Uncategorized\
**Created:** [July 10, 2004, 12:29pm UTC](https://forum.kirupa.com/t/html-enabled-textarea-how-to-set-fontfamily/57114 "2004-07-10T12:29:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flashmatazz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/flashmatazz/32/140_2.png) [@Flashmatazz](https://forum.kirupa.com/u/Flashmatazz)\
**Post date:** [July 10, 2004, 12:29pm UTC](https://forum.kirupa.com/t/html-enabled-textarea-how-to-set-fontfamily/57114/1 "2004-07-10T12:29:37Z")

</div>

I’ve searched and searched but nothing seems to work.

I’m trying to change the fontfamily of the textArea component, but it only seems to work when the html property is set to false.

I tried it using the instancename like:

```auto
myTextArea.setStyle("embedFonts", "true");

```

and I tried setting a global style:

```auto
_global.styles.TextArea = new mx.styles.CSSStyleDeclaration();
_global.styles.TextArea.setStyle("embedFonts", "true");
_global.styles.TextArea.setStyle("fontFamily", "Georgia");

```

but without success thusfar. BTW: I’ve also the font to the library and set the linkage ID.

Can somebody please try to explain to me if this is possible at all, and if it is: how???

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 11, 2004, 1:14pm UTC](https://forum.kirupa.com/t/html-enabled-textarea-how-to-set-fontfamily/57114/2 "2004-07-11T13:14:02Z")

</div>

hey flashmatazz,

i was messing around with textArea the other day, and also couldn’t embed or change the font family if the html property was true. html code then?
