Skip to main content
June 15, 2009
Question

Embed fonts not working

  • June 15, 2009
  • 1 reply
  • 1509 views

Hi,

I want to embed fonts within my Application but somehow it is not working.

I am doing the steps as below:

  • I am compiling fonts swfs in Flash CS4 with Publish settings as Flash Player 10 & ActionScript 3.0
  • Then I am having css files which I am compiling with mxmlc like: mxmlc c:\Palatino.css.
  • It is compiling and giving me swf file as Palatino.swf. I am doing this with "Adobe Flex 3 SDK command prompt"
  • Then I am loading these files with "StyleManager.loadStyleDeclarations".

But still when I am changing the fontFamily to "Palatino", it is now showing it.

I have attached the Palatino.css with this. I am using Flex 3.2 with TLF version 442.

Please let me know if I am making any mistake.

Regards,

Rajesh

This topic has been closed for replies.

1 reply

June 16, 2009

Hi,

Any replies.

I have some urgent requirement, so please tell me If i am doing any mistake.

Rajesh

Participating Frequently
June 16, 2009

Rajesh,

Did you try the steps outlined here: http://blogs.adobe.com/tlf/2008/11/embedded_font_subsetting_using.html

- Abhishek

(Adobe Systems Inc.)

June 16, 2009

Hi Abhishek,

Thanks for the reply.

Actually in my project which was previouly built in Flash 9 we were using TextArea.

We first have created Flash files for all fonts first (in Normal, Bold, Bold Italics...). Then we have all the css files like one which I have attached before. Then we compile this with Flex 3 SDK command prompt with mxmlc.

Then we have already worked out to load these font swf files and use them.

I just want to follow similar approach here for TLF.


Let me know how this can be achieved.

Rajesh