Skip to main content
Daniel 0_o
Known Participant
Oct 21, 2009 3:04 AM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

Daniel 0_o
Known Participant
Oct 23, 2009 3:01 AM UTC

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

Translate
Adobe Employee
Oct 26, 2009 9:49 PM UTC

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

Translate
Daniel 0_o
Known Participant
Oct 27, 2009 12:32 AM UTC

thx Robin, I'll give it a shot.

Daniel

Translate