Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Karl DeSaulniers
Thanks Kerry. Best, Karl On Sep 22, 2010, at 9:27 PM, Kerry Thompson wrote: Juan Pablo Califano wrote: I hear you. The way flash handles fonts is a royal mess. It must be. I went back to an earlier version that hadn't worked, and now it's working. Go figure. I rebooted Windows. Maybe tha

Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Kerry Thompson
Juan Pablo Califano wrote: > I hear you. The way flash handles fonts is a royal mess. It must be. I went back to an earlier version that hadn't worked, and now it's working. Go figure. I rebooted Windows. Maybe that's all it needed. But IT'S DONE! Yay! Thanks for all the help, guys. If you're

Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Juan Pablo Califano
PS: If nothing else works and you're in a hurry, maybe this is worth a try. Make a new fla. Place a textfield on the stage and embed the fonts manually in the Flash IDE. Put this text field inside a MovieClip and export it. Publish this fla as a swc, add it to your FB project and somewhere do thi

Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Juan Pablo Califano
I hear you. The way flash handles fonts is a royal mess. Have you tried this method? http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/text/Font.html#enumerateFonts() It should give you a list of the fonts that are being embbeded in the SWF and their names. It'll not fix the pr

Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Kerry Thompson
Juan Pablo Califano wrote: > var font:Font = new Garamond3Embedded() as Font; > textFormat.font = font.fontName; Well, I tried that too, and still no luck. Just in case it was a path problem, I moved the font into the same folder as my .as file, adjusted the source accordingly, and still no luck.

Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Kerry Thompson
Karl DeSaulniers wrote: > I think Chris's suggestion may be the trick. > I know I had that headache too and placing the format on after the text > loaded did the trick. That looked promising, but I'm getting the same result--I can see the text field outline on screen, but no text. > But I know w

Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Karl DeSaulniers
I think Chris's suggestion may be the trick. I know I had that headache too and placing the format on after the text loaded did the trick. But I know with embedding the font, mine wouldnt work unless everything was "Arial" with a cap A cause my font name was Arial.ttf. go fig. only other thing

Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Kerry Thompson
Juan Pablo Califano wrote: > Have you tried not setting the font name in the text format object? I think > it defaults to Times or something like that. I haven't tried exactly that, but if I comment out the line textField.embedFonts = true; the text shows up. I believe you're right--Times New R

Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Kerry Thompson
Karl DeSaulniers wrote: > Correct me if I am wrong, but don't font embed references have to match the > names exactly? > case sensitive as well? What is on the stage, the font name and library item > name? No, I think you're right. I've tried it with the exact same name, with the same results.

Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Juan Pablo Califano
PS: I meant this: var font:Font = new Garamond3Embedded() as Font; textFormat.font = font.fontName; 2010/9/22 Juan Pablo Califano > Have you tried not setting the font name in the text format object? I think > it defaults to Times or something like that. > > Then, if the text shows up, maybe t

Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Juan Pablo Califano
Have you tried not setting the font name in the text format object? I think it defaults to Times or something like that. Then, if the text shows up, maybe the problem is in the font identifier. You could then / also try this, which should give you the right name for the font. var font:Garamond3E

Re: [Flashcoders] Using an embedded font

2010-09-22 Thread Karl DeSaulniers
Correct me if I am wrong, but don't font embed references have to match the names exactly? case sensitive as well? What is on the stage, the font name and library item name? Karl On Sep 22, 2010, at 8:05 PM, Kerry Thompson wrote: I've been banging my head up against this for 4 hours, and

RE: [Flashcoders] Using an embedded font

2010-09-22 Thread Chris Foster
Behalf Of Kerry Thompson Sent: Thursday, 23 September 2010 11:05 AM To: Flash Coders List Subject: [Flashcoders] Using an embedded font I've been banging my head up against this for 4 hours, and the client has to ship tonight. FlashBuilder 4, Windows 7. I am just trying to make a little demo o

[Flashcoders] Using an embedded font

2010-09-22 Thread Kerry Thompson
I've been banging my head up against this for 4 hours, and the client has to ship tonight. FlashBuilder 4, Windows 7. I am just trying to make a little demo of how to embed a font, but when I pull together code that has worked before into one simple class, it doesn't show the text. It draws the o