TtfHmtxTable

Inheritance: java.lang.Object, com.aspose.font.TtfTableBase

public class TtfHmtxTable extends TtfTableBase

Represents “hmtx” table of the TTF Font file.

Methods

MethodDescription
getTag()Gets table tag.
getHMetrics()Gets horizontal metrics.
getLeftSidebearings()Gets left side bearings.
getAdditionalAdvanceWidth()In hmtx table could be the cases when total number of glyphs is not equal to hhea.numberOfHMetrics.

getTag()

public static String getTag()

Gets table tag.

Returns: java.lang.String - Table tag.

getHMetrics()

public TtfHmtxTable.MetricList getHMetrics()

Gets horizontal metrics.

Returns: MetricList - Horizontal metrics.

getLeftSidebearings()

public short[] getLeftSidebearings()

Gets left side bearings.

Returns: short[] - 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: int - Additional advance width.