Class GlyfTable

java.lang.Object
com.sun.pdfview.font.ttf.TrueTypeTable
com.sun.pdfview.font.ttf.GlyfTable

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

    • glyphs

      private Object[] glyphs
      the glyph data, as either a byte buffer (unparsed) or a glyph object (parsed)
    • loca

      private LocaTable loca
      The glyph location table
  • Constructor Details

    • GlyfTable

      protected GlyfTable(TrueTypeFont ttf)
      Creates a new instance of HmtxTable
  • Method Details

    • getGlyph

      public Glyf getGlyph(int index)
      Get the glyph at a given index, parsing it as needed
    • getData

      public ByteBuffer getData()
      get the data in this map as a ByteBuffer
      Overrides:
      getData in class TrueTypeTable
    • setData

      public void setData(ByteBuffer data)
      Initialize this structure from a ByteBuffer
      Overrides:
      setData in class TrueTypeTable
    • getLength

      public int getLength()
      Get the length of this table
      Overrides:
      getLength in class TrueTypeTable
    • toString

      public String toString()
      Create a pretty String
      Overrides:
      toString in class TrueTypeTable