TtfHmtxTable
Inheritance: java.lang.Object, com.aspose.font.TtfTableBase
public class TtfHmtxTable extends TtfTableBase
表示 “hmtx” 表的 TTF 字体文件。
方法
| 方法 | 描述 |
|---|---|
| equals(Object arg0) | |
| getAdditionalAdvanceWidth() | 在 hmtx 表中,可能出现字形总数不等于 hhea.numberOfHMetrics 的情况。 |
| getClass() | |
| getHMetrics() | 获取水平度量。 |
| getLeftSidebearings() | 获取左侧间距。 |
| getOffset() | 获取自 sfnt 开始的偏移量。 |
| getTag() | 获取表标签。 |
| getTtfTables() | 指向 TTF 表仓库的引用。 |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getAdditionalAdvanceWidth()
public int getAdditionalAdvanceWidth()
在 hmtx 表中,可能出现字形总数不等于 hhea.numberOfHMetrics 的情况。对于这些情况,hmtx 表包含额外的数组 ’leftSideBearing’,该数组对应属性 LeftSidebearings。但索引从 hhea.numOfLongHorMetrics 到 maxp.numGlyphs 的字形也有宽度。根据 hmtx 表规范,这些宽度的取值为:“此处的 advanceWidth 被假定为与上面最后一个条目的 advanceWidth 相同”。
Returns: int - 附加的 advance width。
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getHMetrics()
public TtfHmtxTable.MetricList getHMetrics()
获取水平度量。
Returns: MetricList - Horizontal metrics.
getLeftSidebearings()
public short[] getLeftSidebearings()
获取左侧间距。
Returns: short[] - 左侧间距。
getOffset()
public long getOffset()
获取自 sfnt 开始的偏移量。
Returns: long - 自 sfnt 开始的偏移量。
getTag()
public static String getTag()
获取表标签。
Returns: java.lang.String - 表标签。
getTtfTables()
public TtfTableRepository getTtfTables()
指向 TTF 表仓库的引用。
Returns: TtfTableRepository - Reference to TTF table repository.
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |