Bug 290450 [Forms] TextSegment should call drawText instead of drawString
org.eclipse.ui.internal.forms.widgets.TextSegment calls GC.textExtent when measuring strings and drawString to draw them. For consistency, it should call drawText instead of drawString.
bundles/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/TextSegment.java
private String cleanup(String text) {
		StringBuffer buf = new StringBuffer();
		for (int i = 0; i < text.length(); i++) {
			char c = text.charAt(i);
			if (c == '\n' || c == '\r' || c == '\f') {
				if (i > 0)
					buf.append(' ');
			} else
				buf.append(c);
		}
		return buf.toString();
	}
	public void setWordWrapAllowed(boolean value) {
		wrapAllowed = value;
	}
	public boolean isWordWrapAllowed() {
		return wrapAllowed;
	}
	public boolean isSelectable() {
		return false;
	}
	public String getColorId() {
		return colorId;
	}
	public String getText() {
		return text;
	}
	void setText(String text) {
		this.text = cleanup(text);
		textFragments = null;