Copy link to clipboard
Copied
Hi,
I am working on a Flash CS4 AS3 only project (no Flex involved) and I need to embed a font.
I am linking to the 'TextLayout.swc' to have access to all the TLF classes.
To use embeded fonts I understand I need to set the TextFlow fontLookup property.
E.g.
myTextFlow.fontLookup = FontLookup.EMBEDDED_CFF;
However, the FontLookup class that has the Public Constant EMBEDDED_CFF is in the package flash.text.engine
Where do I get this package from? Do I need to link to another SWC from the Flex 4 SDK like I did with the 'TextLayout.swc'?
If so, which SWC has this class in it?
Cheers,
Adrian
Copy link to clipboard
Copied
It's part of the Player, so there's nothing special you need to link against for it. It's like a Sprite, it's built into the Player.
Copy link to clipboard
Copied
Find more inspiration, events, and resources on the new Adobe Community
Explore Now