mdlaf.utils.WrapperJIconFont Maven / Gradle / Ivy
package mdlaf.utils;
import jiconfont.IconCode;
import jiconfont.IconFont;
import java.io.InputStream;
public enum WrapperJIconFont implements IconCode {
TOGGLE_ON('\uE9F6'),
TOGGLE_OFF('\uE9F5'),
MINIMIZE('\uE931');
private final char character;
WrapperJIconFont(char character) {
this.character = character;
}
@Override
public char getUnicode() {
return character;
}
@Override
public String getFontFamily() {
return "Wrapper Material Icons";
}
public static IconFont getIconFont() {
return new IconFont() {
@Override
public String getFontFamily() {
return "Wrapper Material Icons";
}
@Override
public InputStream getFontInputStream() {
return MaterialFontFactory.class.getResourceAsStream("/fonts/icons/MaterialIcons-Regular.ttf");
}
};
}
}