@Override public final Object createResource(Device device) throws DeviceResourceException { return createFont(device); }
public final Object createResource(Device device) throws DeviceResourceException { return createFont(device); }
@Override public final Object createResource(Device device) throws DeviceResourceException { return createFont(device); }
/** * Returns the set of FontData associated with this font. Modifying the elements * in the returned array has no effect on the original FontDescriptor. * * @return the set of FontData associated with this font */ public FontData[] getFontData() { Font tempFont = createFont(Display.getCurrent()); FontData[] result = tempFont.getFontData(); destroyFont(tempFont); return result; }
/** * Returns the set of FontData associated with this font. Modifying the elements * in the returned array has no effect on the original FontDescriptor. * * @return the set of FontData associated with this font * @since 3.3 */ public FontData[] getFontData() { Font tempFont = createFont(Display.getCurrent()); FontData[] result = tempFont.getFontData(); destroyFont(tempFont); return result; }
/** * Returns the set of FontData associated with this font. Modifying the elements * in the returned array has no effect on the original FontDescriptor. * * @return the set of FontData associated with this font * @since 3.3 */ public FontData[] getFontData() { Font tempFont = createFont(Display.getCurrent()); FontData[] result = tempFont.getFontData(); destroyFont(tempFont); return result; }
@Override public void applyStyles(TextStyle textStyle) { ColorRegistry colorRegistry = JFaceResources.getColorRegistry(); if (fontDescriptor != null) { textStyle.font = fontDescriptor.createFont(Display.getCurrent()); } if (foregroundColorName != null) { textStyle.foreground = colorRegistry.get(foregroundColorName); } if (backgroundColorName != null) { textStyle.background = colorRegistry.get(backgroundColorName); } } }