com.aspose.font

Interfaces

Classes

Enums

Exceptions

com.aspose.font

Class TtfHmtxTable



  • public class TtfHmtxTable
    extends TtfTableBase

    Represents "hmtx" table of the TTF Font file.

    • Method Detail

      • getTag

        public static String getTag()

        Gets table tag.

        Returns:
        Table tag.
      • getLeftSidebearings

        public short[] getLeftSidebearings()

        Gets left side bearings.

        Returns:
        Left side bearings.
      • getAdditionalAdvanceWidth

        public int getAdditionalAdvanceWidth()

        In hmtx table could be the cases when total number of glyphs is not equal to hhea.numberOfHMetrics. For these cases hmtx table contains additional array 'leftSideBearing' which is correspondent to property LeftSidebearings. But glyphs with indexes from hhea.numOfLongHorMetrics to maxp.numGlyphs also have widths. And these widths in accordance to specification for hmtx table have such values: "Here the advanceWidth is assumed to be the same as the advanceWidth for the last entry above".

        Returns:
        Additional advance width.