public org.microemu.device.impl.Font createSystemFont(String defName, String defStyle, int defSize, boolean antialiasing) { return new SwtSystemFont(defName, defStyle, defSize, antialiasing); }
public int charWidth(char ch) { return charsWidth(new char[] {ch}, 0, 1); }
public Font getFont() { checkInitialized(); return font; }
public int charsWidth(char[] ch, int offset, int length) { checkInitialized(); return SwtDeviceComponent.stringWidth(font, new String(ch, offset, length)); }
size = SIZE_LARGE; result = new SwtSystemFont(name, style, size, antialiasing); fonts.put(new Integer(key), result);
public int stringWidth(String str) { checkInitialized(); return SwtDeviceComponent.stringWidth(font, str); }
public int getBaselinePosition() { checkInitialized(); return SwtDeviceComponent.getFontMetrics(font).getAscent(); }
public int getHeight() { checkInitialized(); return SwtDeviceComponent.getFontMetrics(font).getHeight(); }