Link to home
Start Free TrialLog in
Avatar of PeterdeB
PeterdeBFlag for Netherlands

asked on

How can I force a static text field to use the embedded font?

Hi my dear friends!

I have a static text field in which I want to use an embedded font. Now I tried all options but still the text does not quite reflect the font type i embedded. Now my guess would be I have to access its properties and force it to do so using Actionscript?

Could anyone shed some light here please and ask for more info if you need.

Regards Paul

Ps so far I did not use actionscript at least not actionscript I created myself deliberately.
Avatar of wbaumgartner
wbaumgartner

In Flash 8, you can embed fonts for dynamic or input text fields.  You should not have to embed them for static text.
ASKER CERTIFIED SOLUTION
Avatar of furmiga
furmiga

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aneesh Chopra
Hi,

you might have been selected "use device fonts" under font size..

To you embed font with static textField you must not select "use device fonts"

Just select "anti-alias for animation", your static text field will embed the fonts character itself.


Rgds
Aneesh
Avatar of PeterdeB

ASKER

Hi Folks!

Thanks for all responses!

To all > I followed up Furmigas advice. My text size was already 8 and now the x and y coordinates are integers. The option antia alias for animation is selected in all cases. One thing I will alter now is static into dynamic.

Why I want to embed > to force the use of the fonttype. I checked all parameters and they are all as suggested by you, the experts. Still it is not displayed clear and sharp, the way I want it. At my work they use Flash 8 and use actionscript to use some font and there the font is displayed exactly the way they want.

Regards Paul

Yoooo folks!!

I just changed static into dynamic et voila....things look great!

Furmiga gave the complete answer...so he gets the points!

Regards Paul :)
Ooeps I just looked ath the site from another computer without my fonts installed and it takes arial or something instead....geez...now what? :)

Regards Paul
Okie Peter when you work with Dynamics texts you have to embed the fonts other then normal fonts:

2 things about embeding fonts:

1 - Try to use sizes up to 10
2 - You will need to use some Action Script

First:

Before anything, open a new file.

1- Press CTRL+L to open the library (will be nothing there).

2- press options (little button next to the name "Library - Untitled-1") Flash MX here

3- select "New Font"

4- Put the font name and the size you will use for it. Leave all options unchecked and hit "OK"

5- Now, in the Library, right click in your font and select "Linkage..."

6- In the identifier, put a easy name like "font1" <-- not separeted

7- click in "Export for action script" and leave "first frame" selected as well

8- Put a empty dynamic text on the stage (don't need to write nothing on it) and give it a instance name like "my_text"

9- Now, and finally, type this code in your frame:

var new_format:TextFormat = new TextFormat();
new_format.font = "font1";
my_text.embedFonts = true;
my_text.text = "Hi there"; // this is where your text go
my_text.setTextFormat(new_format);


Now, your text will be embed and clear for everyone see;
Hi Furmiga!

Tnx for your reply, I tested it and it works. To have my template display the specific font is too big a task for me so I will settle for Verdana.

Regards Paul

Ps I thought of modifying the template with the steps you provided but I stumble upon too many things I know tooo little about yet :)