Nov 26, 2008 12:38 PM
Can you embed a font just using ActionScript in Flash CS4?
-
Like (0)
quote:
Originally posted by: joe.shankar
Sounds like your project is somehow using an older Flex SDK compiler and not Flex Gumbo compiler. Are you sure you picked the Flex Gumbo sdk by choosing "Use a specific SDK" and pointing it to the Flex Gumbo SDK as indicated at this link?
http://blog.flexexamples.com/2008/08/02/using-the-beta-gumbo-sdk-in-fl ex-builder-3/
quote:
The new embed functionality is in mxmlc.jar. You could try replacing the mxmlc.jar installed with Flash CS4 with a more recent version, but i’m not very optimistic that would work very well (definitely don’t delete the old copy). The dependencies between flash and mxmlc are many and complex, and they have likely been broken in new versions.
quote:
"Error initializing Java Runtime Environment. You may need to reinstall Flash."
quote:
You could create a swc file using a new version of flexbuilder with the new embed stuff available in gumbo (defining ArialEmbeddedFont), and then put the swc in the library path for your FLA and access the ArialEmbeddedFont that way. I think that would work fine, since flexbuilder would handle the [Embed]. The only issue would be if the flash swc linker doesn’t handle definefont4 correctly, but i think we tested that.
quote:
Originally posted by: peterd_mm
I wouldn't go as far as to say "fault". DefineFont4 and CFF is all new/beta stuff being worked on in Gumbo and TLF. Flash CS4 was already finished before this stuff was finalized. I'll keep looking into this when I get a bit of time to see if I can get the FlexBuilder SWC approach working in the meantime though.
I get the same error: transcoding parameter 'cff' is not supported by 'flex2.compiler.media.FontTranscoder' in flex Gumbo, build 4.0.0.8031.
Any idea why I can't embed a font in flex 4?
You shouldn't see this error if you are building with Gumbo. You should double check your SDK setup. Are you sure that you aren't overriding the SDK version in your project settings?
In build 7972, the 'cff' transcoding parameter was renamed to 'embedAsCFF'.
Gordon Smith
Adobe Flex SDK Team
If you are talking about right clicking the project and changing the compiler/sdk settings there then I've done that several times. Each time it says it's using sdk 4.0.0.8031, never changes. If there's something else you are refering to, then please be more specific.
Thanks Gordon, that seemed to fix my problem.
I don't understand how you fixed it. ![]()
Gordon said
In build 7972, the 'cff' transcoding parameter was renamed to 'embedAsCFF'.
Gordon Smith
Adobe Flex SDK Team
Which was what fixed my problem. I was using cff and needed to change it to embedAsCFF
Hope that helps.
Copyright © 2011 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).