Skip to main content
Participant
July 31, 2009
Question

text flow text area

  • July 31, 2009
  • 1 reply
  • 1197 views

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 has been closed for replies.

1 reply

Participating Frequently
July 31, 2009

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

Gordon Smith

Adobe Flex SDK Team

rjettyAuthor
Participant
July 31, 2009

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

Peter_deHaan
Participating Frequently
August 1, 2009