This content has been marked as final.
Show 5 replies
-
1. Re: propery way to load dynamic text which uses stylesheet and embedded fonts
chopTheWood Nov 3, 2008 6:16 PM (in response to sneakyimp)Have you tried it without embedding fonts? -
2. Re: propery way to load dynamic text which uses stylesheet and embedded fonts
chopTheWood Nov 3, 2008 6:41 PM (in response to sneakyimp)I was just wandering if you still get the jump with no fonts imbedded -
3. Re: propery way to load dynamic text which uses stylesheet and embedded fonts
sneakyimp Nov 3, 2008 7:01 PM (in response to sneakyimp)I'm not sure how exactly to 'not embed' the font. Keep in mind that I'm using a stylesheet.
I tried changing my style sheet to have a font family of 'sans-serif', '_sans', and 'Arial' yet in each case, I got a blank page -- no text was visible in my text field.
I repeated those same font names after I changed my textfield inside my flash movie. I altered the textfield to have a default font of _sans, i set it to 'use device fonts'. I then repeated the font options above. nothing seemed to work. I think this is related to the use of a stylesheet.
I also altered my stylesheet so that it did not specify any font-family information at all, this also resulted in a blank text field.
I finally tried one last thing. I set the font of the textfield in cs3 to '_sans' and specifed 'DynamicFont1' or 'DynamicFont1Bold' in my stylesheet. This appears to have eliminated the problem. The jumping text problem appears to happen when I specify ANY embedded font in my dynamic text field in CS3 -- including one that I actually use in the text field. Weird. -
4. Re: propery way to load dynamic text which uses stylesheet and embedded fonts
chopTheWood Nov 3, 2008 7:50 PM (in response to sneakyimp)I noticed you have embed fonts=true in your script. Here's the way I did it that seemed to work:
_root.createTextField("myFormattedText_txt",12,375,65,375,400);//depth 12
myFormattedText_txt.type = "dynamic";
myFormattedText_txt.border = false;
myFormattedText_txt.textWidth = 400;
myFormattedText_txt.background = false;
myFormattedText_txt.multiline = true;
myFormattedText_txt.html = true;
myFormattedText_txt.selectable = false;
myFormattedText_txt.wordWrap = true;
myFormattedText_txt.scroll = true;
var myCSS = new TextField.StyleSheet();
myCSS.load("editText/edit.css");
myCSS.onLoad = function() {
myFormattedText_txt.styleSheet = myCSS;
myFormattedText_txt.text = main_txt.text;
};
THE CSS IS AS FOLLOWS (example):
body14 {
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 14px;
color:#000000;
display: block;
}
bold {
font-weight: bold;
display: inline;
}
------------------ the actual text without a SS applied to it looks like this:
<body14><bold>Jeanne M. Thieme</bold> graduated from Southern Connecticut State College with a Bachelor of Science in Art Education. She began her art career in illustration and design in a Connecticut art studio. </body14>
-
5. Re: propery way to load dynamic text which uses stylesheet and embedded fonts
sneakyimp Nov 3, 2008 8:01 PM (in response to sneakyimp)I only tried the embedFonts = true in an attempt to eliminate the text jumping around. I appreciate your example very much. I'll probably use that at some point. However, the need to use an embedded font is fairly critical for me in this file. The client really doesn't want the default fonts.
As I mentioned in my last post, the jumping text problem happens when I apply some font (even Arial will cause it) to the dynamic text field on my stage in CS3. Setting the text field's font to '_sans' seems to fix the problem -- and I am successfully using the Orator font which I have exported in my library.
Thanks again for your help. I really appreciate it.

