# Textfield with 2 different embed fonts

**URL:** <https://forum.kirupa.com/t/textfield-with-2-different-embed-fonts/283782>\
**Category:** flash\
**Created:** [March 11, 2009, 12:28am UTC](https://forum.kirupa.com/t/textfield-with-2-different-embed-fonts/283782 "2009-03-11T00:28:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asthyanax](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@asthyanax](https://forum.kirupa.com/u/asthyanax)\
**Post date:** [March 11, 2009, 12:28am UTC](https://forum.kirupa.com/t/textfield-with-2-different-embed-fonts/283782/1 "2009-03-11T00:28:09Z")

</div>

Hi,  
I’m wondering if there’s a way to have a text and use 2 different embed fonts.  
Basically, i have a text from a xml file and one textfield that I want to scroll but I want to use a different font for the title.  
I tried something like:

```php

    var contentMessage:String = "<font face='myFont' >"+titleArray[0]+"</font><br>"+contentArray[0];
    contentTxt.htmlText = contentMessage;

```

It doesn’t work of course. I don’t even know if it’s possible.  
Thank’s for your help if you have any idea.
