Skip to main content
Participant
Jul 31, 2009 3:43 AM UTC
Question

text flow text area

Hi,


I am trying to set textflow on the text area (Spark).i am trying to embedd the fonts. in following way

[Embed(source="CAC.ttf",  fontFamily="CAC", cff="true")] 
private var CACFont:Class;

var markup:XML =  <flow:TextFlow xmlns:flow="http://ns.adobe.com/textLayout/2008" horizontalAlign="center" verticalAlign="top" whiteSpaceCollapse="preserve">

<flow:p color="#000000" fontFamily="CAC "  fontSize="18" fontStyle="normal" fontLookup="embeddedCFF" fontWeight="normal" textDecoration="none">

The quick brown 

<flow:span fontSize="28">

fox jumps

</flow:span>

<flow:span fontSize="22">

over the lazy

</flow:span>

<flow:span fontSize="32">

   dog      </flow:span>

</flow:p>

</flow:TextFlow>

it is working fine with SDK flex 4beta 1 buildno(4.0.0.7219 ).

but fonts are not embedding when  iam using  nightly build  4.0.0.8883 . (i changed cff= true to EmbededAsCFF= true).

please advice me if   i am missing something .

Thanks in advance.

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Participating Frequently
Jul 31, 2009 4:55 AM UTC

It's embedAsCFF="true", not EmbededAsCFF=true.

Gordon Smith

Adobe Flex SDK Team

Translate
rjettyAuthor
Participant
Jul 31, 2009 1:18 PM UTC

Sorry for the confusion. i changed cff="true" to embedAsCFF= "true".But i am not able to see the embed fonts.

Translate
Peter_deHaan
Participating Frequently
Aug 1, 2009 12:10 AM UTC

Filed as http://bugs.adobe.com/jira/browse/SDK-22508

Thanks,

Peter

Translate