Project: SWT
Bug 311819 StyledText getTextAttributes should always return font & colors
Reported: 2010-05-06 01:24:45 | Status: resolved fixed

Screen readers don't want to assume (or figure out) what the default font & colors of an IAccessibleText are. So we need to return something for them, even if there are no styles. Something like this (did not test): if (!isListening(LineGetStyle) && st.renderer.styleCount == 0) { e.textStyle = new TextStyle(st.getFont(), st.foreground, st.background); e.start = 0; e.end = contentLength; return; }

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java