Bug with fontStyle?
I am trying to change the fontStyle to italic and if the whole selected text is italic and the user clicks on the italic button the formatting should be reset.
Here an example:
var cf:TextLayoutFormat = new TextLayoutFormat();
cf.fontStyle = FontStyle.REGULAR;
IEditManager(_textFlow.interactionManager).applyLeafFormat(cf);
_textFlow.interactionManager.setFocus();
The font style is reset if I change it to FormatValue.INHERIT. But that would result that if the paragraph is formatted in italic the text stays italic. But it is possible to reset the fontWeight property to FontWeight.NORMAL.
Is that problem with the fontStyle a bug?
Thanks in advance.
