Re: [flexcoders] Embedding Flash font

2007-09-16 Thread Jon Bradley
I'm guessing because it's not recognizing the embedded font - you're  
seeing the character from the default font, not the embedded font.


A few things I try to make sure of:

1. Don't name the embedded font in the Flash 8 swf file the same as  
the system font.


2. Open the Flash 8 SWF back up into Flash 8 IDE (or CS3 IDE). When  
you do that, do a list variables - Debug > List Variables. Make note  
of the 'exported' font name that Flash used for the font. That name  
is what you'll use in Flex.


For example, on using a pixel font (Kroeger 05_56), I exported the  
Flash 8 SWF file, the embedded symbol name ended up as "kroeger  
05_56_8pt_st". And in Flex, I used this in the CSS as follows:


@font-face {
src: url(../fonts/Kroeger.swf) ;
fontFamily: "kroeger 05_56_8pt_st";
font-weight: normal;
}

And defining the usage of that font, recognizing that in this case  
it's a pixel font and doesn't use the advanced anti aliasing


.assetInfoTitle
{
color:#66;
fontFamily: "kroeger 05_56_8pt_st";
font-weight: normal;
fontSize: 8;
fontAntiAliasType: normal;
}

Hopefully that will get you on your way.

best,

Jon



On Sep 16, 2007, at 9:35 AM, candysmate wrote:


I have created a Flash 8 swf as per:
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/ 
wwhelp.htm?context=LiveDocs_Book_Parts&file=fonts_070_12.html

containing the Windings font.
In my external css files I have :




[flexcoders] Embedding Flash font

2007-09-16 Thread candysmate
I have created a Flash 8 swf as per: 
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=fonts_070_12.html
containing the Windings font.
In my external css files I have :

.myWingdingsStyle {
font-Family: Wingdings;
font-Size: 16;
font-Color: #FF;
}   

and in my MXML  script section I have:

[Embed(source='/assets/wingdings.swf', 
fontName='Wingdings'
)] 
private static var plainFont:Class;

Within my label component I have:



This sgould give me the ballot box style cross, but I only get a
capital U witb a reflex accent over it. Where am I falling down?