View unanswered posts | View active topics


Reply to topic  [ 5 posts ] 
Embedding Text in an AS3 Project 
Author Message
Sponsor

Joined: Sun Aug 05, 2007 7:01 pm
Posts: 80
Location: Near Denver, Colorado, USA
Post Embedding Text in an AS3 Project
Since I'm not sure if this is really a FlashDevelop issue, I decided to post it here...

I'm trying to use the [Embed] meta to embed a font for an AS3 project (not a Flex project). I'm compiling with mxmlc (not the Flash IDE). I've got the TTF font in the src directory of my project. It does not seem to be using the font, when I tell the TextField to embedFonts, then no text is shown.

Is it possible to embed fonts for an AS3 project being compiled by mxmlc?
If so, can someone post a working snippet so I can see whether is a problem at my end?

Regards,
John

_________________
My iPad game:
http://AstraItinera.com/


Sun May 02, 2010 2:28 pm
Profile WWW
Admin

Joined: Tue Aug 30, 2005 6:14 pm
Posts: 2535
Location: Finland
Post Re: Embedding Text in an AS3 Project
Check this: viewtopic.php?f=13&t=6456


Sun May 02, 2010 3:29 pm
Profile WWW
Sponsor

Joined: Sun Aug 05, 2007 7:01 pm
Posts: 80
Location: Near Denver, Colorado, USA
Post Re: Embedding Text in an AS3 Project
Thanks Mika. I was using Flex 3, but I'll download Flex 4 and try adding that attribute to the embed tag (adding it with Flex 3 does work).

Regards,
John

_________________
My iPad game:
http://AstraItinera.com/


Mon May 03, 2010 3:09 am
Profile WWW
Sponsor

Joined: Sun Aug 05, 2007 7:01 pm
Posts: 80
Location: Near Denver, Colorado, USA
Post Re: Embedding Text in an AS3 Project
I downloaded Flex 4, added embedAsCFF = "false" to the [Embed] tag, then got this:

This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option.

Which required me to add the following to the project's Additional Compiler Options array in the project Properties:
-static-link-runtime-shared-libraries=true

Now it works :-)

Thanks,
John

_________________
My iPad game:
http://AstraItinera.com/


Mon May 03, 2010 12:49 pm
Profile WWW
Member

Joined: Mon Jan 04, 2010 11:12 pm
Posts: 24
Post Re: Embedding Text in an AS3 Project
Thanks, this also solved my problem :)


Mon May 24, 2010 3:27 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.