Class FontParser


  • public class FontParser
    extends java.lang.Object
    Creates Font instances from string representations.
    • Constructor Summary

      Constructors 
      Constructor Description
      FontParser​(@NotNull JXCSkinSource skinSource)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.awt.Font getFont​(@NotNull java.lang.String name)
      Returns a font by font file base name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FontParser

        public FontParser​(@NotNull
                          @NotNull JXCSkinSource skinSource)
        Creates a new instance.
        Parameters:
        skinSource - the skin source for loading resources
    • Method Detail

      • getFont

        @NotNull
        public @NotNull java.awt.Font getFont​(@NotNull
                                              @NotNull java.lang.String name)
                                       throws java.io.IOException
        Returns a font by font file base name.
        Parameters:
        name - the file base name of the font file to load
        Returns:
        the font
        Throws:
        java.io.IOException - if the font cannot be loaded