TtfHeadTable
Inheritance: java.lang.Object, com.aspose.font.TtfTableBase
public class TtfHeadTable extends TtfTableBase
表示 TTF 字体文件的 “head” 表。
方法
| 方法 | 描述 |
|---|---|
| equals(Object arg0) | |
| getCheckSumAdjustment() | 获取 uint32 checkSumAdjustment。 |
| getClass() | |
| getCreated() | 获取 longDateTime 创建的国际日期。 |
| getFlags() | 获取 uint16 flags。 |
| getFontDirectionHint() | 获取 int16 fontDirectionHint。0 混合方向的字形;1 仅强左到右的字形;2 类似 1 但也包含中性字形;-1 仅强右到左的字形;-2 类似 -1 但也包含中性字形。 |
| getFontRevision() | 获取 由字体制造商设置的 fixed fontRevision。 |
| getGlyphDataFormat() | 获取 int16 glyphDataFormat,0 表示当前格式。 |
| getIndexToLocFormat() | 获取 int16 indexToLocFormat,0 表示短偏移,1 表示长偏移。 |
| getLowestRecPPEM() | 获取 uint16 lowestRecPPEM,最小可读像素大小。 |
| getMacStyle() | 获取 uint16 macStyle。 |
| getMagicNumber() | 获取 uint32 magicNumber,设置为 0x5F0F3CF5。 |
| getModified() | 获取 longDateTime 修改的国际日期。 |
| getOffset() | 获取自 sfnt 开始的偏移量。 |
| getTag() | 获取表标签。 |
| getTtfTables() | 指向 TTF 表仓库的引用。 |
| getUnitsPerEM() | 获取 uint16 unitsPerEM,范围从 64 到 16384。 |
| getVersion() | Fixed 版本 0x00010000(如果为 version 1.0)。 |
| getXMax() | 获取所有字形边界框的 FWord xMax。 |
| getXMin() | 获取所有字形边界框的 FWord xMin。 |
| getYMax() | 获取所有字形边界框的 FWord yMax。 |
| getYMin() | 获取所有字形边界框的 FWord yMin。 |
| 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
getCheckSumAdjustment()
public long getCheckSumAdjustment()
获取 uint32 checkSumAdjustment。计算方法:将其设为 0,计算 ‘head’ 表的校验和并放入表目录,按 uint32 对整个字体求和,然后存储 B1B0AFBA - sum。‘head’ 表的校验和不会出错。这样即可。
Returns: long - Uint32 checkSumAdjustment。
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getCreated()
public Date getCreated()
获取 longDateTime 创建的国际日期。
Returns: java.util.Date - LongDateTime 创建的国际日期。
getFlags()
public int getFlags()
获取 uint16 flags。
Returns: int - UInt16 flags。
getFontDirectionHint()
public short getFontDirectionHint()
获取 int16 fontDirectionHint。0 混合方向的字形;1 仅强左到右的字形;2 类似 1 但也包含中性字形;-1 仅强右到左的字形;-2 类似 -1 但也包含中性字形。
Returns: short - Int16 fontDirectionHint。
getFontRevision()
public float getFontRevision()
获取 由字体制造商设置的 fixed fontRevision。
Returns: float - Fixed fontRevision 由字体制造商设置。
getGlyphDataFormat()
public short getGlyphDataFormat()
获取 int16 glyphDataFormat,0 表示当前格式。
Returns: short - Int16 glyphDataFormat 0 表示当前格式。
getIndexToLocFormat()
public short getIndexToLocFormat()
获取 int16 indexToLocFormat,0 表示短偏移,1 表示长偏移。
Returns: short - Int16 indexToLocFormat 0 表示短偏移,1 表示长偏移。
getLowestRecPPEM()
public int getLowestRecPPEM()
获取 uint16 lowestRecPPEM,最小可读像素大小。
Returns: int - UInt16 lowestRecPPEM 最小可读像素尺寸。
getMacStyle()
public int getMacStyle()
获取 uint16 macStyle。
Returns: int - UInt16 macStyle。
getMagicNumber()
public long getMagicNumber()
获取 uint32 magicNumber,设置为 0x5F0F3CF5。
Returns: long - UInt32 magicNumber 设置为 0x5F0F3CF5。
getModified()
public Date getModified()
获取 longDateTime 修改的国际日期。
Returns: java.util.Date - LongDateTime 已修改的国际日期。
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.
getUnitsPerEM()
public long getUnitsPerEM()
获取 uint16 unitsPerEM,范围从 64 到 16384。
Returns: long - UInt16 unitsPerEM 范围从 64 到 16384。
getVersion()
public float getVersion()
Fixed 版本 0x00010000(如果为 version 1.0)。
Returns: float - 固定版本 0x00010000(如果 version 1.0)。
getXMax()
public short getXMax()
获取所有字形边界框的 FWord xMax。
Returns: short - FWord xMax 用于所有字形边界框。
getXMin()
public short getXMin()
获取所有字形边界框的 FWord xMin。
Returns: short - FWord xMin 用于所有字形边界框。
getYMax()
public short getYMax()
获取所有字形边界框的 FWord yMax。
Returns: short - FWord yMax 用于所有字形边界框。
getYMin()
public short getYMin()
获取所有字形边界框的 FWord yMin。
Returns: short - FWord yMin 用于所有字形边界框。
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 |