Class Font

java.lang.Object
com.spinyowl.legui.style.font.Font

public class Font extends Object
Representation of font. Used by text components to specify font to use by renderer.
  • Constructor Details

    • Font

      public Font(String path, ByteBuffer data)
      Used to create font with specified path and data.
      Parameters:
      path - path to font.
      data - font data.
  • Method Details

    • getData

      public ByteBuffer getData()
      Returns font data.
      Returns:
      font data.
    • getPath

      public String getPath()
      Returns font path.
      Returns:
      font path.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object