String text = GraphicsExample.getResourceString("SWT");
Point point = gc.stringExtent(text);
int textWidth = point.x;
int textHeight = point.y;
gc.drawString(text, (width - textWidth) / 2, (height - textHeight) / 2, true);
font.dispose();
} else {
Font font = new Font(device, CountDownTab.getPlatformFontFace(0), 6 * diameter / 10, SWT.NONE);
gc.setFont(font);