2 Feb 2009

You've embedded your font via DefineFont4 in Gumbo using either CSS or ActionScript, but, try as you might, the embedded font is not showing up in your project. If you were migrating a Flex 3 project in Flex Builder to Gumbo and you were previously embedding fonts, check your project settings and look under compiler flags to see if you find the following flag:

-managers flash.fonts.AFEFontManager

If you do, remove it! That's the culprit right there! :)

Otherwise, check that you're doing everything correctly -- your embed code should look something like this:

<Style>
    @font-face {
	    src: url("fonts/ACaslonPro-Regular.otf");
	    fontFamily: "AdobeCaslonAIR";
	    cff: true;
	}
 
	.myBeautifulTextArea {
	    fontFamily: "AdobeCaslonAIR";
		fontLookup: "embeddedCFF";
		fontSize: 20;
	}
</Style>
<FxTextArea id="myBeautifulTextArea"/>
 

Hope this helps save a little hair on your head (and, as always, if you find something that's just not working, create a fresh new project in Flex Builder and test out just that feature and then compare it to your main app — i.e., spike it!)

Creative Commons LicenseThe Fonts not embedding in Gumbo? article by Aral Balkan, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 2.0 UK: England License.

Add Your Comment

Spam Protection by WP-SpamFree

Fonts not embedding in Gumbo?

  1. Hey Aral, I was tried to find your email but could not.

    I’d like to bring to your attention the community effort to make Adobe re-access their decision to prefix the Flex 4 components with ‘Fx’.

    Manish Jethani has the story here:
    http://manishjethani.com/blog/2009/01/23/strongly-against-the-fx-prefix/

    Please evrybody get your friends to vote!

    Jay