I am trying to use an embedded font in a TextFlow span element in a TextArea in a custom component and it is not working. Also can you use a stylename from an ext. stylesheet? The fontFamily works if I style the TextArea itself with it, and it works as a device font in the span since it is loaded on my computer, but I need to use it as an embedded font since most users will not have it.
Below is what I tried:
<s:span fontFamily="threeDumbFont" fontLookup="embeddedCFF">
Everyone says the cow jumped over the moon
I have a external styleshteet for the application here is part of it that includes the font:
Set fontFamily on the TextArea as well.
The rules are that all fonts in a component must be embedded in the same SWF, and the component itself must be given one of those fonts as the fontFamily (and fontStyle and fontWeight) so it can detect and use the correct SWF for its fonts. Once you've specified one of the fonts in the SWF, the TextFlow can use any of the fonts in the SWF.
Flex SDK Developer
Adobe Systems Inc.
That did it. I need to find that rule book.
Thanks much for your clearly defined reply,