Class LocaTable

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

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

    • LocaTable

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

    • getOffset

      public int getOffset(int glyphID)
      get the offset, in bytes, of a given glyph from the start of the glyph table
      Parameters:
      glyphID - a Integer object.
      Returns:
      a Integer object.
    • getSize

      public int getSize(int glyphID)
      get the size, in bytes, of the given glyph
      Parameters:
      glyphID - a Integer object.
      Returns:
      a Integer object.
    • isLongFormat

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