
org.webswing.toolkit.ge.WebGraphicsEnvironment11 Maven / Gradle / Ivy
The newest version!
package org.webswing.toolkit.ge;
import org.webswing.Constants;
import sun.awt.FontConfiguration;
@SuppressWarnings("restriction")
public class WebGraphicsEnvironment11 extends WebGraphicsEnvironment {
public WebGraphicsEnvironment11() {
if (hasFontConfiguration()) {
System.setProperty("sun.awt.fontconfig",System.getProperty(Constants.SWING_START_SYS_PROP_FONT_CONFIG));
System.setProperty("sun.font.fontmanager", org.webswing.toolkit.ge.WebFontManager.class.getName());
}
}
public FontConfiguration createFontConfiguration(boolean b1, boolean b2) {
return null; //not used in java8 (see WebFontManager)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy