public FontUIResource getWindowTitleFont() { return this.getSubstanceFont(this.systemFontSet .getWindowTitleFont(), true, 1); } }
@Override public FontUIResource getSmallFont() { return this.getSubstanceFont(this.systemFontSet.getSmallFont(), false, 1); }
public FontSet getFontSet(String lafName, UIDefaults table) { FontSet baseResult = fontPolicy.getFontSet(lafName, table); FontSet substanceFontSet = new SubstanceFontSet(baseResult); return substanceFontSet; } };
/** * Gets the current control font size. * * @return Control font size. */ public static int getControlFontSize() { if (controlFontSize > 0) return controlFontSize; FontPolicy fPolicy = SubstanceLookAndFeel.getFontPolicy(); FontSet fSet = fPolicy.getFontSet("Substance", null); controlFontSize = fSet.getControlFont().getSize(); return controlFontSize; }
@Override public FontUIResource getControlFont() { return this.getSubstanceFont(this.systemFontSet.getControlFont()); }
/** * Returns scaled platform-specific font policy. * * @param scaleFactor * Scale factor. Should be positive. * @return Scaled platform-specific font policy. */ public static FontPolicy getScaledFontPolicy(final float scaleFactor) { final FontSet substanceCoreFontSet = SubstanceFontUtilities .getDefaultFontPolicy().getFontSet("Substance", null); // Create the scaled font set FontPolicy newFontPolicy = new FontPolicy() { public FontSet getFontSet(String lafName, UIDefaults table) { return new ScaledFontSet(substanceCoreFontSet, scaleFactor); } }; return newFontPolicy; } }
@Override public FontUIResource getMenuFont() { return this.getSubstanceFont(this.systemFontSet.getMenuFont()); }
@Override public FontUIResource getTitleFont() { return this.getSubstanceFont(this.systemFontSet.getTitleFont()); }
@Override public FontUIResource getMessageFont() { return this.getSubstanceFont(this.systemFontSet.getMessageFont()); }
@Override public FontSet getFontSet(String lafName, UIDefaults table) { FontPolicy customPolicy = getCustomPolicy(lafName); if (customPolicy != null) { return customPolicy.getFontSet(null, table); } FontSet customFontSet = getCustomFontSet(lafName); if (customFontSet != null) { return customFontSet; } return wrappedPolicy.getFontSet(lafName, table); } }
@Override public FontUIResource getMenuFont() { return this.getWrappedFont(this.delegate.getMenuFont()); }
@Override public FontSet getFontSet(String lafName, UIDefaults table) { FontSet baseResult = fontPolicy.getFontSet(lafName, table); FontSet substanceFontSet = new SubstanceFontSet(baseResult); return substanceFontSet; } };
public FontUIResource getControlFont() { return this.getSubstanceFont(this.systemFontSet.getControlFont()); }
/** * Returns scaled platform-specific font policy. * * @param scaleFactor * Scale factor. Should be positive. * @return Scaled platform-specific font policy. */ public static FontPolicy getScaledFontPolicy(final float scaleFactor) { final FontSet substanceCoreFontSet = SubstanceFontUtilities .getDefaultFontPolicy().getFontSet("Substance", null); // Create the scaled font set FontPolicy newFontPolicy = new FontPolicy() { @Override public FontSet getFontSet(String lafName, UIDefaults table) { return new ScaledFontSet(substanceCoreFontSet, scaleFactor); } }; return newFontPolicy; } }
@Override public FontUIResource getWindowTitleFont() { return this.getSubstanceFont(this.systemFontSet .getWindowTitleFont(), true, 1); } }
public FontUIResource getSmallFont() { return this.getSubstanceFont(this.systemFontSet.getSmallFont(), false, 1); }
public FontUIResource getMenuFont() { return this.getSubstanceFont(this.systemFontSet.getMenuFont()); }
public FontUIResource getTitleFont() { return this.getSubstanceFont(this.systemFontSet.getTitleFont()); }
public FontUIResource getMessageFont() { return this.getSubstanceFont(this.systemFontSet.getMessageFont()); }
public FontSet getFontSet(String lafName, UIDefaults table) { FontPolicy customPolicy = getCustomPolicy(lafName); if (customPolicy != null) { return customPolicy.getFontSet(null, table); } FontSet customFontSet = getCustomFontSet(lafName); if (customFontSet != null) { return customFontSet; } return wrappedPolicy.getFontSet(lafName, table); } }