Class HmtxTable


  • public class HmtxTable
    extends TrueTypeTable
    Model the TrueType Post table
    • Field Detail

      • advanceWidths

        short[] advanceWidths
        advance widths for any glyphs that have one
      • leftSideBearings

        short[] leftSideBearings
        left side bearings for each glyph
    • Constructor Detail

      • HmtxTable

        protected HmtxTable​(TrueTypeFont ttf)
        Creates a new instance of HmtxTable
    • Method Detail

      • getAdvance

        public short getAdvance​(int glyphID)
        get the advance of a given glyph
      • getLeftSideBearing

        public short getLeftSideBearing​(int glyphID)
        get the left side bearing of a given glyph
      • getData

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

        public void setData​(java.nio.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