CffEncoding
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.font.IFontEncoding, com.aspose.font.ISupportsNameAddressing
public class CffEncoding implements IFontEncoding, ISupportsNameAddressing
表示 CFF _font 编码。
方法
| 方法 | 描述 |
|---|---|
| decodeToGid(long charCode) | 获取传入的 charCode 的 Gid。 |
| decodeToGidParameterized(IEncodingParameters parameters, long charCode) | 参数化解码方法。 |
| encode(long gid, long charCode) | 对字形进行编码。 |
| equals(Object arg0) | |
| getClass() | |
| getNameToCharCodeIndex() | 返回名称到字符代码编码的映射。 |
| getNameToGidIndex() | 返回名称到字符代码编码的映射。 |
| getNameToSidIndex() | 返回名称到字符代码编码的映射。 |
| getSidName(int sid) | 获取指定 SID 的名称。 |
| gidToUnicode(GlyphId gid) | 将 Gid 解码为 unicode。 |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| unicodeToGid(long unicode) | 将 unicode 解码并返回字形 ID。 |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
decodeToGid(long charCode)
public GlyphId decodeToGid(long charCode)
获取传入的 charCode 的 Gid。此方法针对 CFF CIDFonts 设计,其中 charCode 必须是有效的 CID 值。Glyph id 是字形的唯一编号,取决于 \_font 类型。CFF 字体的 glyph id 可以是 ( GlyphStringId ) 类的实例或 ( GlyphUInt32Id ) 类的实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| charCode | long | 用于获取字形标识符的字符代码 (CID)。 |
Returns: GlyphId - Glyph identifier related to CID passed.
decodeToGidParameterized(IEncodingParameters parameters, long charCode)
public GlyphId decodeToGidParameterized(IEncodingParameters parameters, long charCode)
参数化解码方法。不支持 CFF 字体类型。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| parameters | IEncodingParameters | IEncodingParameters 接口的实现。 |
| charCode | long | 用于获取字形标识符的字符代码。 |
Returns: GlyphId - Glyph identifier related to charCode passed.
encode(long gid, long charCode)
public void encode(long gid, long charCode)
对字形进行编码。不支持 CFF 字体类型。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| gid | long | 字形标识符 |
| charCode | long | 与字形标识符关联的 CharCode。 |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getNameToCharCodeIndex()
public NameToCodeMap getNameToCharCodeIndex()
返回名称到字符代码编码的映射。注意:字符代码不是 Unicode。字符代码是字体编码 "table" 中的字符索引。
Returns: NameToCodeMap - Name to character code encoding map.
getNameToGidIndex()
public NameToCodeMap getNameToGidIndex()
返回名称到字符代码编码的映射。注意:字符代码不是 Unicode。字符代码是字体编码 "table" 中的字符索引。
Returns: NameToCodeMap - Name to character code encoding map.
getNameToSidIndex()
public NameToCodeMap getNameToSidIndex()
返回名称到字符代码编码的映射。注意:字符代码不是 Unicode。字符代码是字体编码 "table" 中的字符索引。
Returns: NameToCodeMap - Name to character code encoding map.
getSidName(int sid)
public String getSidName(int sid)
获取指定 SID 的名称。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| sid | int | String 标识符。 |
Returns: java.lang.String - 如果找到,则来自 String INDEX 的名称。
gidToUnicode(GlyphId gid)
public long gidToUnicode(GlyphId gid)
将 Gid 解码为 unicode。Glyph id 是字形的唯一编号,取决于 \_font 类型。CFF 字体的 glyph id 可以是 ( GlyphStringId ) 类的实例或 ( GlyphUInt32Id ) 类的实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| gid | GlyphId | 要解码的符号的 Glyph 标识符。 |
Returns: long - 与传入的 glyph id 相关的 Unicode 值。
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
unicodeToGid(long unicode)
public GlyphId unicodeToGid(long unicode)
将 unicode 解码并返回 glyph id。Glyph id 是字形的唯一编号,取决于 \_font 类型。CFF 字体的 glyph id 可以是 ( GlyphStringId ) 类的实例或 ( GlyphUInt32Id ) 类的实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| unicode | long | 用于获取字形标识符的 Unicode。 |
Returns: GlyphId - Glyph identifier related to unicode passed.
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 |