Class HmtxTable

  • All Implemented Interfaces:
    Table

    public class HmtxTable
    extends java.lang.Object
    implements Table
    Version:
    $Id: HmtxTable.java 1733416 2016-03-03 07:07:13Z gadams $
    • Field Detail

      • buf

        private byte[] buf
      • hMetrics

        private int[] hMetrics
      • leftSideBearing

        private short[] leftSideBearing
    • Constructor Detail

      • HmtxTable

        protected HmtxTable​(DirectoryEntry de,
                            java.io.RandomAccessFile raf)
                     throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • init

        public void init​(int numberOfHMetrics,
                         int lsbCount)
      • getAdvanceWidth

        public int getAdvanceWidth​(int i)
      • getLeftSideBearing

        public short getLeftSideBearing​(int i)
      • getType

        public int getType()
        Description copied from interface: Table
        Get the table type, as a table directory value.
        Specified by:
        getType in interface Table
        Returns:
        The table type