类 FontUtil


  • public class FontUtil
    extends java.lang.Object
    作者:
    yaqiang
    • 构造器概要

      构造器 
      构造器 说明
      FontUtil()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static java.util.List<java.awt.Font> getAllFonts()
      Get all available fonts (system fonts, weather font and custom fonts)
      static java.awt.Font getFont​(java.lang.String fileName)
      Get font from font file - .ttf
      static java.awt.Font getWeatherFont()
      Get weather symbol font
      static void registerFont​(java.awt.Font font)
      Register a font
      static void registerFont​(java.lang.String fileName)
      Register a font
      static void registerWeatherFont()
      Register weather font
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • FontUtil

        public FontUtil()
    • 方法详细资料

      • getAllFonts

        public static java.util.List<java.awt.Font> getAllFonts()
        Get all available fonts (system fonts, weather font and custom fonts)
        返回:
        Font list
      • registerFont

        public static void registerFont​(java.awt.Font font)
        Register a font
        参数:
        font - The font
      • registerFont

        public static void registerFont​(java.lang.String fileName)
        Register a font
        参数:
        fileName - Font file name
      • registerWeatherFont

        public static void registerWeatherFont()
        Register weather font
      • getFont

        public static java.awt.Font getFont​(java.lang.String fileName)
        Get font from font file - .ttf
        参数:
        fileName - Font file name
        返回:
        The font
      • getWeatherFont

        public static java.awt.Font getWeatherFont()
        Get weather symbol font
        返回:
        Weather symbol font