|
|
|
Re: StyledText Does Not Show Unit Separator [message #639410 is a reply to message #526824] |
Tue, 16 November 2010 13:09 |
Bjoern Berg Messages: 47 Registered: November 2009 Location: Essen |
Member |
|
|
I still have the problem with displaying the Unit Separator (<US>, ASCII 31) in a StyledText.
I added something like
...
setFontStyle("courier", 10, "Courier New", SWT.NORMAL);
...
// transcript is the StyledText
public void setFontStyle(String description, int point, String font, int style) {
if (transcript == null || display == null) return;
if (fontRegistry == null)
fontRegistry = new FontRegistry(display);
fontRegistry.put(description, new FontData[] {new FontData(font, point, style)});
transcript.setFont(fontRegistry.get(description));
transcript.update();
}
to my editor component. But StyledText does not display a Unit separator while it displays any other special ASCII character with an empty caret.
Has anyone encountered a similar problem and a fix for it?
[Updated on: Tue, 16 November 2010 13:22] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03923 seconds