public void drawString(OutputDevice outputDevice, String string, float x,
float y) {
GC gc = ((SWTOutputDevice) outputDevice).getGC();
FontMetrics metrics = gc.getFontMetrics();
y -= (metrics.getAscent() + metrics.getLeading());
gc.drawText(string, (int) x, (int) y, SWT.DRAW_TRANSPARENT);
}
public FSFontMetrics getFSFontMetrics(FontContext context, FSFont font,
String string) {
return new SWTFontMetricsAdapter((SWTFontContext) context,