类 FontUtil
- java.lang.Object
-
- org.meteoinfo.ui.util.FontUtil
-
public class FontUtil extends Object
- 作者:
- yaqiang
-
-
构造器概要
构造器 构造器 说明 FontUtil()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static List<Font>getAllFonts()Get all available fonts (system fonts, weather font and custom fonts)static FontgetFont(String fileName)Get font from font file - .ttfstatic FontgetWeatherFont()Get weather symbol fontstatic FontgetYaheiHybridFont()Get yahei consolas hybrid fontstatic voidregisterFont(Font font)Register a fontstatic voidregisterFont(String fileName)Register a fontstatic voidregisterWeatherFont()Register weather font
-
-
-
方法详细资料
-
getAllFonts
public static List<Font> getAllFonts()
Get all available fonts (system fonts, weather font and custom fonts)- 返回:
- Font list
-
registerFont
public static void registerFont(Font font)
Register a font- 参数:
font- The font
-
registerFont
public static void registerFont(String fileName)
Register a font- 参数:
fileName- Font file name
-
registerWeatherFont
public static void registerWeatherFont()
Register weather font
-
getFont
public static Font getFont(String fileName)
Get font from font file - .ttf- 参数:
fileName- Font file name- 返回:
- The font
-
getWeatherFont
public static Font getWeatherFont()
Get weather symbol font- 返回:
- Weather symbol font
-
getYaheiHybridFont
public static Font getYaheiHybridFont()
Get yahei consolas hybrid font- 返回:
- Yahei consolas hybrid font
-
-