Class Font

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    
    public final class Font
    extends Resource
                        

    A font used by the rendering implementation. The font is lazily loaded by the renderer.

    • Constructor Detail

      • 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)