# htmlText embedded font

**URL:** https://forum.kirupa.com/t/htmltext-embedded-font/320303
**Category:** flash
**Created:** [March 19, 2011, 10:13pm UTC](https://forum.kirupa.com/t/htmltext-embedded-font/320303 "2011-03-19T22:13:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ramzes\_II](https://avatars.discourse-cdn.com/v4/letter/r/8797f3/32.png) [@Ramzes\_II](https://forum.kirupa.com/u/Ramzes_II)
#### Post date: [March 19, 2011, 10:13pm UTC](https://forum.kirupa.com/t/htmltext-embedded-font/320303/1 "2011-03-19T22:13:01Z")

</div>

Hello!

I’m in the middle of the painful transition to AS3, and have encountered a stonewall. In AS2 you could export any font for actionscript and use its identifier (for example “Font 1”) in htmlText:

my\_text.htmlText = \<font face=“Font 1” size=“20”\>"+Some text+"\</font\>"

But what’s the procedure in AS3, as fonts doesn’t have identifiers, only a class name?
