Skip to main content
Participant
July 30, 2010
Question

Font compilation error

  • July 30, 2010
  • 2 replies
  • 788 views

So, in Flash Builder, my app compiles fine.

But when I try to build it on my production server from the command line, it fails while compiling the fonts:

/home/me/MyFlexProject/SomeModule/src/Fonts.as(29): Error: exception during transcoding: Font for alias 'HelveticaRounded LT Std Blk' with plain weight and style was not found at: file:/home/me/MyFlexProject/SomeModule/src/assets/fonts/HelveticaRoundedLTStd-Black.otf

                [Embed(source='/assets/fonts/HelveticaRoundedLTStd-Black.otf',fontName='HelveticaRounded LT Std Blk',mimeType='application/x-font',embedAsCFF='false')]

I have tried using a different font manager, via "-managers=flash.fonts.AFEFontManage", but this did not change anything.  What could be the cause of this?

This topic has been closed for replies.

2 replies

Participant
July 30, 2010

And here is Fonts.as:

package

{

    import flash.text.Font;

    public class Fonts

    {

        [Embed(source='/assets/fonts/HelveticaRoundedLTStd-Black.otf',fontName='HelveticaRounded LT Std Blk',fontWeight='bold',mimeType='application/x-font',embedAsCFF='false')]

        private static var _font1:Class;

        /*[Embed(source='/assets/fonts/HelveticaRoundedLTStd-Black.otf',fontName='HelveticaRounded LT Std Blk',fontWeight='bold',mimeType='application/x-font',embedAsCFF='true')]

        private static var _font1CFF:Class;

        [Embed(source='/assets/fonts/HelveticaRoundedLTStd-Bd.otf',fontName='HelveticaRounded LT Std Bd',fontWeight='bold',mimeType='application/x-font',embedAsCFF='false')]

        private static var _font2:Class;

        [Embed(source='/assets/fonts/HelveticaRoundedLTStd-Bd.otf',fontName='HelveticaRounded LT Std Bd',fontWeight='bold',mimeType='application/x-font',embedAsCFF='true')]


        private static var _font2CFF:Class;*/

        /**
         * register fonts with the font manager to be
         * used in modules and sub applications
         */
        public static function registerFonts():void
        {
            Font.registerFont(_font1);
            /*Font.registerFont(_font1CFF);
            Font.registerFont(_font2);
            Font.registerFont(_font2CFF);*/
        }
    }
}
Participant
July 30, 2010

I should add that my production server is a Linux machine, and obviously Flash Builder is running in Windows.  Would /really/ appreciate some help on this.

Thanks