 |
 |
 |
|
Page 1 of 1
|
[ 5 posts ] |
|
Embedding Text in an AS3 Project
| Author |
Message |
|
nyquist
Sponsor
Joined: Sun Aug 05, 2007 7:01 pm Posts: 80 Location: Near Denver, Colorado, USA
|
 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 |
|
 |
|
Mika
Admin
Joined: Tue Aug 30, 2005 6:14 pm Posts: 2535 Location: Finland
|
 Re: Embedding Text in an AS3 Project
|
| Sun May 02, 2010 3:29 pm |
|
 |
|
nyquist
Sponsor
Joined: Sun Aug 05, 2007 7:01 pm Posts: 80 Location: Near Denver, Colorado, USA
|
 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 |
|
 |
|
nyquist
Sponsor
Joined: Sun Aug 05, 2007 7:01 pm Posts: 80 Location: Near Denver, Colorado, USA
|
 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=trueNow it works  Thanks, John
_________________ My iPad game: http://AstraItinera.com/
|
| Mon May 03, 2010 12:49 pm |
|
 |
|
mzam
Member
Joined: Mon Jan 04, 2010 11:12 pm Posts: 24
|
 Re: Embedding Text in an AS3 Project
Thanks, this also solved my problem 
|
| Mon May 24, 2010 3:27 pm |
|
|
|
Page 1 of 1
|
[ 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
|
|
 |
|