Skip to main content
March 13, 2010
Question

Embedding Bold and Italic Fonts for dynamic SWF

  • March 13, 2010
  • 1 reply
  • 999 views

I must be missing something simple here. Using the TextLayout component in CS4 (not Flex) to create dynamically loaded fonts in individal SWF files. Everything works fine, except I can't see where to embed Italic and Bold font styles.

When I click EMBED FLASH FONTS In the TextLayout window, there is only one choce per font family; for example, only one Arial font listed to embed. If I then create some text in the window specifying Arial font and Lookup = Embedded CFF, I can't apply Bold or Italic to the text - or rther,  can apply them but the text does not display the style. Setting Lookup = Device shows the style. Further, when I load the SWF into my main application, isFontCompatible(...) shows true for ("Arial", "normal", "normal")  but false for ("Arial", "bold", "normal").

So how do I embed Arial Italic?

This topic has been closed for replies.

1 reply

Adobe Employee
March 17, 2010

I would suggest using Flex to embed the fonts, and then link to the resulting SWC from your Flash Pro project. See http://blogs.adobe.com/flexdoc/2009/09/using_fonts_in_flex_4.html for info about how to do that in Flex.

- robin