AS : embedFonts HELP [°v°]
- Started
- Last post
- 6 Responses
- goygoygoy
Hi there,
Action script problem:
I can't embed fonts using action script. I'm doing this:
my text format :btniv1 = new TextFormat();
btniv1.font = "ceriph 07_55";
btniv1.size = 8;
btniv1.color = 0x405672;then later:
this.createTextField("titre", 10, 0, -4, 300, 16);
titre.selectable = false;
titre.wordWrap = true;
titre.multiline = true;
titre.autoSize = false;
titre.embedFonts =true
titre.text = _parent.monDocXML.firstChild.chi...
titre.setTextFormat(btniv1);The text simply doesn't display. when putting titre.embedFonts=false, it display ... but display like shit if the font isn't installed.
any suggestion ?
thks
- frankbb0
I did it by embeding th font into your library...
click the top right arrow/New Font.../
click on it..name the font i.e. "myfont" and select the font you want.
it should be in you library now, right click it/Linkage/ export it with a name.. i.e. "myfont"
now just change your code.. btniv1.font = "myfont";
that worked for me..
- goygoygoy0
thks frankbb, seems to work.
got to test it on a machine that doesn't have the fonts now.
- frankbb0
tell us if it does work..
cheers
- goygoygoy0
works perfectly frankbb thanks!
- frankbb0
right thats my bit for the day..
i'd better get back to work..
..
in a bit
- goygoygoy0
wow man, thks for the mail, you can't know how happy i'm to receive that. I had thought I would quit flash 'cos of that mask and dynamic fonts.
you saved mi love 4 flash!hipaaaaaa
>--[°v°]--<