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
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
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
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,
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.
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
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
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
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.
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
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
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
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
13 matches
Mail list logo