Skip to main content
Daniel 0_o
Known Participant
October 21, 2009
Question

do I must use flex to embed font with TLF component in flash CS4?

  • October 21, 2009
  • 1 reply
  • 817 views

Hi

I notice all post require to use Flex SDK for font embedding.

is there a way to use the TLF flash component and embed a font to it. the text is loaded from xml.

does any body using the flash component any more?

what I'm trying to do is very simple.

load xml file into TLF component. i use TLF because the text is from right to left and I like it to be justify. (with other components the justify will start new line from the left)

I tried embedding the font with provided interface, however when the text is loaded dynamically it fails.

Thx

This topic has been closed for replies.

1 reply

Daniel 0_o
Known Participant
October 23, 2009

to embed font with flash textlayout component and loading text dynamically from XML:

add the next value in your XML -

fontSize="13" fontLookup="embeddedCFF" fontFamily="FbTypograph Regular"

note:

the font need to be embedded in the component: window --> other panels --> text layout --> "embed font..." btn

Adobe Employee
October 26, 2009

If you are using TLF with Flash CS4, I would suggest not using the Flash Component for TLF, since that requires a very old version of TLF. I would suggest getting a newer TLF from the Flex Open Source drops for Flex4, and then taking out just the textLayout.SWF, and using that in your Flash project. If you need to embed fonts, use the compiler that comes in the Flex SDK to embed the font into its own SWC, and then load the SWC into your Flash project.

Hope this helps,

- robin

Daniel 0_o
Known Participant
October 27, 2009

thx Robin, I'll give it a shot.

Daniel