Truncation letter in TextField with tags i b et arial font
Hi,
I created a textfield, I used :
- htmlText with tags b and i,
- a style with Arial font.
Some lettters truncated.
If i used Verdana font, i have not problem
My code :
var _texteBox:TextField=new TextField();
_texteBox.name="txt";
_texteBox.type = TextFieldType.DYNAMIC;
_texteBox.background = false; // pas de background
_texteBox.border = false; // pas de bordure
_texteBox.condenseWhite = true; // on ne supprime pas les espaces blanc, saut de ligne...
_texteBox.selectable = false; // non selectionable
_texteBox.multiline = true; // plusieurs lignes
_texteBox.wordWrap = false;
_texteBox.autoSize = TextFieldAutoSize.LEFT;
_texteBox.styleSheet = StyleManager.Instance.css;
_texteBox.htmlText = myTexte
// on passe en dynamique
_texteBox.wordWrap = true;
_texteBox.width = largeurMax;
htmlText (variable myTexte) contains :
<b><i>azertyuiopqsdfghjklmwxcvbn</i></b> not truncate<br/>
<b><i>d</i></b> d truncate<br/>
<b><i>i</i></b> i truncate<br/>
<b><i>i d</i></b> d truncate<br/>
<b><i>d i</i></b> i truncate<br/>
<b><i>d i</i></b>r i truncate<br/>
My style :
.intitule{
font-family: Arial, Helvetica, sans-serif;
}
Thanks for helpful
