italicFont = buildFont(name, height, SWT.ITALIC);
underlineFont = buildFont(name, height, SWT.UNDERLINE_LINK);
boldAndItalicFont = buildFont(name, height, SWT.ITALIC|SWT.BOLD);
return this;
}
<BUG>private Color buildColor(final int r, final int g, final int b) {
return new Color(parent.getDisplay(), r, g, b);
}</BUG>
public TextPainter setBoundaryColor(final int r, final int g, final int b) {
<BUG>boundaryColor.dispose();
boundaryColor = buildColor(r, g, b);
</BUG>
return this;

italicFont = buildFont(name, height, SWT.ITALIC);
underlineFont = buildFont(name, height, SWT.UNDERLINE_LINK);
boldAndItalicFont = buildFont(name, height, SWT.ITALIC|SWT.BOLD);
return this;
