Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7056541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:52:45+00:00 2026-05-28T03:52:45+00:00

I am trying to embed a font in my Flash Builder 4.6 project, so

  • 0

I am trying to embed a font in my Flash Builder 4.6 project, so far unsuccessful.
I searched around and found this fix, adding “-managers flash.fonts.AFEFontManager” to the Compiler, doesn’t work. I’ve embedded tons of images to the same project, but I’m not sure what’s going on with the embedding of fonts.

I get this error:

Multiple markers at this line:

-unable to build font ‘Chinese Rocks Rg’

-exception during transcoding: Font for alias ‘Chinese Rocks Rg’ with plain weight and style was not found at: file:/E:/StarlingIntro – >Finished/src/../assets/textures/chinese_rocks_rg.otf

-Unable to transcode ../assets/textures/chinese_rocks_rg.otf.

For the following code:

    [Embed(source="../assets/textures/chinese_rocks_rg.otf", fontName="Chinese Rocks Rg", fontWeight="normal", advancedAntiAliasing="true", embedAsCFF=false, mimeType = "application/x-font")] 
    public var ChineseRocks_FontClass:Class;
    public var chineseRocks_textFromat:TextFormat = new TextFormat("Chinese Rocks Rg");

What do they mean was not found? It’s the same path as everything else I’ve embedded. Does it mean that it’s expecting a certain “style” from the .otf file? Wut?

Thanks for any info on this!

PS: it gives the same error for other fonts as well, for example MyriadWebPro.ttf.

[EDIT]

Okay, here’s what’s going on. I am using this embed code right now:

[Embed(source="chinese_rocks_rg.otf", //yes, it's in my src folder because I'm paranoid 
            fontName = "myChineseRocks", 
            mimeType = "application/x-font", 
            fontWeight="normal", 
            fontStyle="normal", 
            unicodeRange="englishRange", 
            advancedAntiAliasing="true" 

    )]//embedAsCFF="false"

I have commented out the embedAsCFF, because I tried it with the -managers=flash.fonts.AFEFontManager compiler parameter. None of the two work.

This is in Flash Builder 4.6, using Flex SDK 4.6.0. Now, if I switch to Flex SDK 3.6.0, the error seems to go away, but I can’t use 3.6.0 since I’m using the Starling Stage3D framework.

Is it possible that stuff changed from 4.0 to 4.6, and now your article, Divillysausages, (which really illuminated me btw) doesn’t apply to it?

[EDIT2]

I solved it! With the help of Divillysausages and his patience :).

Basically, I was completely stupid. I had a “#” and 2x” ` “s in the actual path to my project. I KNEW having those dumb folder names would screw my stuff up some day! And sure enough it did -with Java, but I moved Eclipse out of there a long time ago and forgot about it.

Anyway, I moved the flash project to a more friendly directory and included the embedAsCFF="false" and it worked.
Also, having -managers=flash.fonts.AFEFontManager in your compiler arguments or not, seems to not matter.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:52:46+00:00Added an answer on May 28, 2026 at 3:52 am

    fontWeight="regular", doesn’t exist. You’re probably looking for fontWeight="normal" (or “bold”, or “heavy”)

    Basically what your error is telling you that in the font you’re trying to load, it couldn’t find the weight “regular”, so it can’t be embedded.

    I wrote this a while ago to explain font embedding, it might help: http://divillysausages.com/blog/as3_font_embedding_masterclass

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to embed a font using the following code that I found
I'm trying to embed a font in my project by using url(font.ttf) rather than
I'm trying to embed a font using css on in my flex project via
i'm trying to embed a swf to my as3 flex project like this: [Embed(source
I'm trying to use the MusiSync font to embed a sharp and flat symbol
I'm trying to embed my Subversion revision number in a C++ project and am
I am trying to get the following example to work in Flash Builder 4:
I am trying to embed my custom font in my website, got a link
I am trying to embed different typefaces of a font and have a .otf
I have two questions: I am trying to embed fonts via this page in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.