This content has been marked as final. Show 9 replies
If you're using a Mac, this could be the kerning problem. Set the textfield to be Static, turn off kerning, reset the textfield back to Dynamic.
Thanks for the suggestion. i'm using a PC. I am creating all the textfields with the TextField.createTextField function. I've tried to put in the htmlText and then set kerning to true and then right after it to false. It looked the same unfortunately.
hmmm any other thoughts?
you're using multiline textfields, correct? are you using the autoSize property and/or wordWrap properties of textfields?
Yes I'm using all of those. See below:
_movieClip.txtMC.selectable = true;
_movieClip.txtMC.multiline = true;
_movieClip.txtMC._width = ConfigData.CONTENT_STAGE_WIDTH;
_movieClip.txtMC.wordWrap = true;
_movieClip.txtMC.styleSheet = InstanceManager.STYLES;
_movieClip.txtMC.html = true;
_movieClip.txtMC.htmlText = _str;
where's autoSize? fix that and retest.
sorry I forgot to mention autosize:
_movieClip.txtMC.autoSize = "left";
it's there too, just a few lines higher up so I missed it.
are you assigning a font with your stylesheet? if so, embed your font.
Yes I am assigning a font in the stylesheet file. It looks like this:
The font is embedded outside the stage on the first frame. There are 3 dynamic textfields of verdana fonts (Regular, italic and bold) with all characters, numbers, punctuations, latins embedded. Is this the correct way of embedding a font? I've tried to use the new font function in the library but it doesn't work with multiple font-weights in the same textfield which I need to be able to do. ("<b>bold text</b> regular text")
you need to enable autoSize AFTER you assign your text string.