public class TtfHmtxTable extends TtfTableBase
Represents "hmtx" table of the TTF Font file.
| Modifier and Type | Class and Description |
|---|---|
static class |
TtfHmtxTable.LongHorMetric
Represents metrics record.
|
static class |
TtfHmtxTable.MetricList
Represents list of metrics
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAdditionalAdvanceWidth()
In hmtx table could be the cases when total number of glyphs is not equal to
hhea.numberOfHMetrics.
|
TtfHmtxTable.MetricList |
getHMetrics()
Gets horizontal metrics.
|
short[] |
getLeftSidebearings()
Gets left side bearings.
|
static String |
getTag()
Gets table tag.
|
getLength, getOffset, getTtfTablespublic static String getTag()
Gets table tag.
public TtfHmtxTable.MetricList getHMetrics()
Gets horizontal metrics.
public short[] getLeftSidebearings()
Gets left side bearings.
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".
Copyright © 2025 Aspose. All Rights Reserved.