Skip to main content
Inspiring
February 10, 2009
Answered

Font missing in TLF "Embed Fonts" pane

  • February 10, 2009
  • 2 replies
  • 1060 views
One of the sweet things about TLF is that it makes embedding fonts in ActionScript much nicer. There's one window to include your fonts, and they have their real names when you go to use them later.

I've been using this method for a project I'm currently working on. The client just requested italic and bold styling, so now I have to embed those glyphs.

In the properties pane for TextField, I can select Univers Lt Std's "65 Bold" style. When I open the TLF pane to embed this font, I only get these styles:
Univers LT Std 45 Light
Univers LT Std 47 Cn Lt
Univers LT Std 55

I haven't tried embedding them with metadata yet. Looks like I'll have to go that way, but it's so much less elegant. =(
This topic has been closed for replies.
Correct answer scribintoons
It should be noted that in order to get this to work, I had to get rid of the AFEFontManager setting. It should be further noted that, had I not tried AFEFontManager, I would have no idea that the lack of a 'regular' style in these font files was the cause of these issues. It would be nice if the requirement of fontWeight and fontStyle was better documented.

More importantly, you ought to be able to embed irregular styles and weights from the TextLayout panel, without ever needing to use this workaround.

2 replies

scribintoonsAuthorCorrect answer
Inspiring
February 11, 2009
It should be noted that in order to get this to work, I had to get rid of the AFEFontManager setting. It should be further noted that, had I not tried AFEFontManager, I would have no idea that the lack of a 'regular' style in these font files was the cause of these issues. It would be nice if the requirement of fontWeight and fontStyle was better documented.

More importantly, you ought to be able to embed irregular styles and weights from the TextLayout panel, without ever needing to use this workaround.
Inspiring
February 10, 2009
I have a feeling this has to do with the fact that the font I needed is bold. When I tried to use the Flex method, I was getting transcoding errors. I then had to change to the AFEFontManager before I was told that the error was because there is no regular style for the fonts that were erroring. This AS built with Flex, now I just need to import it into Flash:

package {
import flash.display.Sprite;

public class UniversFonts extends Sprite {
[Embed(source='UniversLTStd-Light.otf', fontName='Univers LT Std 45 Light', cff='true')]
public static var Univers45:Class;
[Embed(source='UniversLTStd.otf', fontName='Univers LT Std 55', cff='true')]
public static var Univers55:Class;
[Embed(source='UniversLTStd-Obl.otf', fontName='Univers LT Std 56 Oblique', cff='true', fontStyle='italic')]
public static var Univers56:Class;
[Embed(source='UniversLTStd-Bold.otf', fontName='Univers LT Std 65 Bold', cff='true', fontWeight='bold')]
public static var Univers65:Class;
}
}