Class GlyfTable

java.lang.Object
org.loboevolution.pdfview.font.ttf.TrueTypeTable
org.loboevolution.pdfview.font.ttf.GlyfTable

public class GlyfTable extends TrueTypeTable
Model the TrueType Glyf table
  • Constructor Details

    • GlyfTable

      protected GlyfTable(TrueTypeFont ttf)
      Creates a new instance of HmtxTable
      Parameters:
      ttf - a TrueTypeFont object.
  • Method Details

    • getGlyph

      public Glyf getGlyph(int index)
      Get the glyph at a given index, parsing it as needed
      Parameters:
      index - a Integer object.
      Returns:
      a Glyf object.
    • getData

      public ByteBuffer getData()

      get the data in this map as a ByteBuffer

    • setData

      public void setData(ByteBuffer data)

      Initialize this structure from a ByteBuffer

    • getLength

      public int getLength()
      Get the size of the table, in bytes

      Get the length of this table

      Overrides:
      getLength in class TrueTypeTable
      Returns:
      a Integer object.
    • toString

      public String toString()

      Put into a nice string

      Create a pretty String

      Overrides:
      toString in class TrueTypeTable