Class Font

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    
    public final class Font
    extends Resource
                        

    A font used by the rendering implementation. As with other PolyUI resources, the actual loading, management, etc. of the font is NOT managed in this class in any way. This class just contains metadata for usage with PolyUI.

    • Constructor Detail

      • Font

        Font(String resourcePath, Float letterSpacing, Float lineSpacing, FontFamily family, Boolean italic, Font.Weight weight)
        Parameters:
        resourcePath - The resource of the font, can be a URL (see here, you should use this or an equivalent method)
        letterSpacing - The letter spacing of the font, in pixels (e.g.
        lineSpacing - The line spacing of the font, in proportion to the font size (e.g.
        family - a reference to the family that encloses this font.
      • Font

        Font(String resourcePath, Float letterSpacing, Float lineSpacing, FontFamily family, Boolean italic)
        Parameters:
        resourcePath - The resource of the font, can be a URL (see here, you should use this or an equivalent method)
        letterSpacing - The letter spacing of the font, in pixels (e.g.
        lineSpacing - The line spacing of the font, in proportion to the font size (e.g.
        family - a reference to the family that encloses this font.
      • Font

        Font(String resourcePath, Float letterSpacing, Float lineSpacing, FontFamily family)
        Parameters:
        resourcePath - The resource of the font, can be a URL (see here, you should use this or an equivalent method)
        letterSpacing - The letter spacing of the font, in pixels (e.g.
        lineSpacing - The line spacing of the font, in proportion to the font size (e.g.
        family - a reference to the family that encloses this font.
      • Font

        Font(String resourcePath, Float letterSpacing, Float lineSpacing)
        Parameters:
        resourcePath - The resource of the font, can be a URL (see here, you should use this or an equivalent method)
        letterSpacing - The letter spacing of the font, in pixels (e.g.
        lineSpacing - The line spacing of the font, in proportion to the font size (e.g.
      • Font

        Font(String resourcePath, Float letterSpacing)
        Parameters:
        resourcePath - The resource of the font, can be a URL (see here, you should use this or an equivalent method)
        letterSpacing - The letter spacing of the font, in pixels (e.g.
      • Font

        Font(String resourcePath)
        Parameters:
        resourcePath - The resource of the font, can be a URL (see here, you should use this or an equivalent method)