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
short index;
		short length;
		public TextFragment(short index, short length) {
			this.index = index;
			this.length = length;
		}
	}
	public TextSegment(String text, String fontId) {
		this(text, fontId, null, true);
	}
	public TextSegment(String text, String fontId, String colorId) {
		this(text, fontId, colorId, true);
	}
	
	public TextSegment(String text, String fontId, String colorId, boolean wrapAllowed) {
		this.text = cleanup(text);
		this.fontId = fontId;
		this.colorId = colorId;
		this.wrapAllowed = wrapAllowed;
	}