Re: [flexcoders] Re: Embedding Flash font

2007-09-17 Thread Jon Bradley

Ok, I just checked that out.

Looks as though when the font is set to antialias, it uses the  
"system name" for the Font, so "Wingdings" if you choose that. If you  
set the font to be 'bitmap' and don't antialias, it exports it as  
"fontName_SIZEpt_st" or in my test "Wingdings_8pt_st".


You might want to try exporting it as bitmap and then have the CSS in  
Flex set to display it with antialiasing.


The other option is to use the .TTF file for Wingdings and use that  
reference inside of the Flex CSS file:


@font-face {
src: url("../fonts/Wingdings.ttf") ;
fontFamily: Wingdings;
unicodeRange:
U+0020-U+0040, /* Punctuation, Numbers */
U+0041-U+005A, /* Upper-Case A-Z */
U+005B-U+0060, /* Punctuation and Symbols */
U+0061-U+007A, /* Lower-Case a-z */
U+007B-U+007E; /* Punctuation and Symbols */
}

good luck,

jon


On Sep 17, 2007, at 4:57 AM, candysmate wrote:


Jon, I tried this today and the font name shown in the Flash 8 debug
variables windows is 'Wingdings', which i have in my embed section and
in my style declaration. However, I still can't see it in Flex. Guess
I'll have to fiddle some more.




[flexcoders] Re: Embedding Flash font

2007-09-17 Thread candysmate
--- In flexcoders@yahoogroups.com, Jon Bradley <[EMAIL PROTECTED]> wrote:
>
> 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
> 
> 
> 

Jon, I tried this today and the font name shown in the Flash 8 debug
variables windows is 'Wingdings', which i have in my embed section and
in my style declaration. However, I still can't see it in Flex. Guess
I'll have to fiddle some more.



Re: [flexcoders] Re: Embedding Flash font

2007-09-16 Thread Jon Bradley

No prob! Happy I was able to help.

I banged my head against the wall on that one for a while. Took me a  
bit of research to find out that Flash exports symbols for embedded  
fonts with it's own formatting. Now, it would be nice if there were  
just an automated way to deal with this.


good luck,

jon

On Sep 16, 2007, at 3:46 PM, candysmate wrote:


--- In flexcoders@yahoogroups.com, Jon Bradley <[EMAIL PROTECTED]> wrote:
>
> 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:
>


It sure did Jon! Please accept my grateful thanks.




[flexcoders] Re: Embedding Flash font

2007-09-16 Thread candysmate
--- In flexcoders@yahoogroups.com, Jon Bradley <[EMAIL PROTECTED]> wrote:
>
> 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:
> 


It sure did Jon!  Please accept my grateful thanks.