public class FontUtil extends Object
| 构造器 | 说明 |
|---|---|
FontUtil() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static List<Font> |
getAllFonts() |
Get all available fonts (system fonts, weather font and custom fonts)
|
static Font |
getFont(String fileName) |
Get font from font file - .ttf
|
static Font |
getWeatherFont() |
Get weather symbol font
|
static void |
registerFont(Font font) |
Register a font
|
static void |
registerFont(String fileName) |
Register a font
|
static void |
registerWeatherFont() |
Register weather font
|
public static List<Font> getAllFonts()
public static void registerFont(Font font)
font - The fontpublic static void registerFont(String fileName)
fileName - Font file namepublic static void registerWeatherFont()
public static Font getFont(String fileName)
fileName - Font file namepublic static Font getWeatherFont()
Copyright © 2019. All rights reserved.