Class LocaTable

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

public class LocaTable extends TrueTypeTable
Model the TrueType Loca table
  • Field Details

    • isLong

      private boolean isLong
      if true, the table stores glyphs in long format
    • offsets

      private int[] offsets
      the offsets themselves
  • Constructor Details

    • LocaTable

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

    • getOffset

      public int getOffset(int glyphID)
      get the offset, in bytes, of a given glyph from the start of the glyph table
    • getSize

      public int getSize(int glyphID)
      get the size, in bytes, of the given glyph
    • isLongFormat

      public boolean isLongFormat()
      Return true if the glyphs arte in long (int) format, or false if they are in short (short) format
    • 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