Font Size of Dynamic Text Box is not consistant

In short, I have two Flash applications.  One where a user can add and manipulate text.  A user can change the font size.  That font size is recorded is recorded in an XML document.  

Later a seperate Flash file reads the XML to duplicate what the user created.

My problem is that the font size is not remaining uniform.  The user might choose a 12 pt font.  In the other flash file a 12 point font is much bigger.  In both cases the Dynamic Text box is manipulated using:

setTextFormat()

I know the code is effectively formating the text box.  In the second application I have to make set the font to 7 pt to closer resemble the first 12pt font.

This application demands that the text look exactly the same from one aplication to the next, but the font size simply isn't constant.

Any ideas would be GREATLY appreciated.  I'm just hoping this isn't another Flash anomoly here.

jasonrleeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SavongCommented:
Probably has to do with the fonts available on each system.  The only solution I'm aware of is to embed the font.  Either select your text box and select "character" in the properties panel (you can then select which characters to embed).  Or you'll need to add a font in the library if the textbox is created dynamically.

Go to the menu for the library and choose "New Font" and select the correct font.  Size isn't a large issue with most fonts, primarily just pixel fonts.  Once that font is in the library you can set the linkage for it and then use the code:
theTextBox.setStyle("fontFamily","embededFontName");
theTextBox.setStyle("embedFonts",true);

That should embed everything, if you have any questions or if I'm way off the target let me know and we'll give this another go round.
0
jasonrleeAuthor Commented:
I wish that was the answer but I implimented it without change.  Actually I've already simplified the whole thing to only using Arial so I wouldn't think there would be issues at all.

I am absolutely open to any other thoughts you might have.  At this point I will try anything.  Until there is another idea I will double check to see if I implimented this correctly.
0
SavongCommented:
Assuming that both are Windows systems (which may be a bad assumption) you can check in the display properties (right click on the desktop, go to properties), and on the settings tab, click advanced.  There on the general tab check the font size.  If they are different that might give us an indication why this is happening (though I wouldn't know of a workaround).  Truthfully I'm not sure if that setting would make a difference within flash or not, so I might be barking up the wrong tree entirely.  I have too many things up right now to reboot my system or I'd check for a change myself.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

nishasrilankanCommented:
have you tried with fixed font size instead of the fontsize from the XML file? or just try with dummy XML file with two nodes with same font sizes...
0
jasonrleeAuthor Commented:
To answer Savong first,  I created both flash files on the same computer.  Both files were placed on a server and I am testing both files from the same Windows computer.  So there is no change in platform from one flash file to the next.  Regardless of the windows settings the font size should be consistent from one Flash application to the next.

To answer Nishasrikankan, I actually negated pulling the font value from the XML at all and set the Dynamic text box to 12pt.  Even without the XML the 12pt font is different from one Flash to the next.

I am still open to absolutely any additional thoughts here.
0
trigger-happyCommented:
I'll just ask a question 1st, this may seem unlikely but, did you resize the text box using the Free transform tool? If you did then there's your problem
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jasonrleeAuthor Commented:
Yes, after much frustration I just figured that out last night, but I'll give the points to you anyway.  

This is ridiculous.  For others I will expand on what is happening.

Open the Transform panel.  Use the text tool to draw a dynamic text box.  When you first draw it and click on it with the transform tool it reads 100% for Height and Width.  If you were to shrink or enlarge the height of the box only, when you publish/preview the flash your text gets Bigger!!!  Therefore if you don't have 100% for both height and width your 12pt font is not true to size, and will scale larger or smaller.  This completely negates the purpose of having a font size in the first place, and makes not sense to me.  Why can't I draw a text box of a specific size, with a specific font, and actually end up with the right font size?

Now I just have to figure out how to make a dynamic text box of a specific size and still keep the 100% perspective.  If I am missing some aspect of this let me know.  Otherwise I'll muddle through it.  Thanks everyone for trying.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.