So, in Flash Builder on Windows, my app and all embedded fonts compile just fine.
But when I try to build it on my production Linux server (via a Makefile on the command line using make
), compilation fails while transcoding 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')]
Things I have tried:
Using a different font manager, via "-managers=flash.fonts.AFEFontManage".
Using different fonts, but it either gives a slightly different version of the usual error, see:
Error: exception during transcoding: Font for alias 'xxx' with plain weight and style was not found at: file:...
Looking at the font using fontforge
, I think I've narrowed the problem down to the fact that apparently within the font file there are both "Windows" and "Mac" names defined. This seems like the possible culprit since on Windows the font compiles fine, but then on Linux it can no longer find a font with the same name. However, even when I switched to using the "Mac" name on Linux, I still get the same error about not being able to find a font with the requested name.
I want to find out what is going on that is preventing the transcoding from being able to happen.
Here is a link to the font in question: http://jetlib.com/HelveticaRoundedLTStd-Black.otf
For good measure, here is Fonts.as:
package ...
{
import flash.text.Font;
public class Fonts
{
[Embed(source='/assets/fonts/HelveticaRoundedLTStd-Black.otf',
fontNam e='HelveticaRounded LT Std Blk', fontWeight='normal',
mimeType='application/x-font',embedAsCFF='false')]
private static var _font1:Class;
/**
* register fonts with the font manager to be
* used in modules and sub applications
*/
public static function registerFonts():void
{
Font.registerFont(_font1);
}
}
}
Any help, thoughts, or insights would be GREATLY appreciated!
Output using fontWeight='bold':
/home/me/MyFlexProject/SomeModulesrc/Fonts.as(23): Error: exception during transcoding: Font for alias 'HelveticaRounded LT Std Blk' with bold weight was not found at: file:/home/me/MyFlexProject/SomeModulesrc/assets/fonts/HelveticaRoundedLTStd-Black.otf
[Embed(source='/assets/fonts/HelveticaRoundedLTStd-Black.otf',fontName='HelveticaRounded LT Std Blk',fontWeight='bold',mimeType='application/x-font',embedAsCFF='false')]
/home/me/MyFlexProject/SomeModulesrc/Fonts.as(23): col: 3: Error: unable to build font 'HelveticaRounded LT Std Blk'
[Embed(source='/assets/fonts/HelveticaRoundedLTStd-Black.otf',fontName='HelveticaRounded LT Std Blk',fontWeight='bold',mimeType='application/x-font',embedAsCFF='false')]
^
/home/me/MyFlexProject/SomeModulesrc/Fonts.as(23): col: 3: Error: Unable to transcode /assets/fonts/HelveticaRoundedLTStd-Black.otf.
Output with fontWeight='normal':
/home/me/MyFlexProject/SomeModulesrc/Fonts.as(23): Error: exception during transcoding: Font for alias 'HelveticaRounded LT Std Blk' with plain weight and style was not found at: file:/home/me/MyFlexProject/SomeModulesrc/assets/fonts/HelveticaRoundedLTStd-Black.otf
[Embed(source='/assets/fonts/HelveticaRoundedLTStd-Black.otf',fontName='HelveticaRounded LT Std Blk',fontWeight='normal',mimeType='application/x-font',embedAsCFF='false')]
/home/me/MyFlexProject/SomeModulesrc/Fonts.as(23): col: 3: Error: unable to build font 'HelveticaRounded LT Std Blk'
[Embed(source='/assets/fonts/HelveticaRoundedLTStd-Black.otf',fontName='HelveticaRounded LT Std Blk',fontWeight='normal',mimeType='application/x-font',embedAsCFF='false')]
^
/home/me/MyFlexProject/SomeModulesrc/Fonts.as(23): col: 3: Error: Unable to transcode /assets/fonts/HelveticaRoundedLTStd-Black.otf.