RE: [Flashcoders] Using an embedded font

2010-09-22 Thread Chris Foster
Hi Kerry, I think this is one that gave me headaches a while ago... My solution was to apply the textFormat AFTER the text has been applied to the textField. C: -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On

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 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

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 califa010.flashcod...@gmail.com Have you tried not setting the font name in the text format object? I think it defaults to Times or something like that. Then,

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 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

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
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 with

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 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

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

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 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