类 GlyphId

GlyphId class

表示字体中可用的字形 ID。字形 ID 是针对字形的唯一编号,取决于字体类型。例如:Type1 的 ID 是字形名称,(GlyphStringId) 类的实例。TTF 的 ID 是整数索引,(GlyphUInt32Id) 类的实例。

public abstract class GlyphId

方法

名称描述
override Equals(object)如果两个字形 ID 不相等则返回 true。
abstract GetHashCode()返回对象的哈希码。
virtual ToGlyphStringId()虚拟强制转换为 GlyphUInt32Id。GlyphUInt32Id 重写以返回实例。
virtual ToGlyphUInt32Id()虚拟强制转换为 GlyphUInt32Id。GlyphUInt32Id 重写以返回实例。
abstract ToString()返回字形 ID 的字符串表示。
operator ==如果两个字形 ID 相等则返回 true。
operator !=如果两个字形 ID 不相等则返回 true。

另见