CffEncoding
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.font.IFontEncoding, com.aspose.font.ISupportsNameAddressing
public class CffEncoding implements IFontEncoding, ISupportsNameAddressing
Represents CFF font encoding.
Methods
| Method | Description | 
|---|---|
| decodeToGid(long charCode) | Gets Gid for charCode passed. | 
| decodeToGidParameterized(IEncodingParameters parameters, long charCode) | Parameterized decode method. | 
| encode(long gid, long charCode) | Encodes the glyph. | 
| equals(Object arg0) | |
| getClass() | |
| getNameToCharCodeIndex() | Returns name to character code encoding map. | 
| getNameToGidIndex() | Returns name to character code encoding map. | 
| getNameToSidIndex() | Returns name to character code encoding map. | 
| getSidName(int sid) | Gets name for the SID specified. | 
| gidToUnicode(GlyphId gid) | Decodes Gid to unicode. | 
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| unicodeToGid(long unicode) | Decodes a unicode and returns glyph id. | 
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) | 
decodeToGid(long charCode)
public GlyphId decodeToGid(long charCode)
Gets Gid for charCode passed. This method designed for a CFF CIDFonts, where charCode must be a valid CID value. Glyph id is a unique number for a glyph, which is font type dependent. CFF Font glyph id can be instance of ( GlyphStringId ) class or ( GlyphUInt32Id ) class.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| charCode | long | Character code (CID) to get glyph identifier for. | 
Returns: GlyphId - Glyph identifier related to CID passed.
decodeToGidParameterized(IEncodingParameters parameters, long charCode)
public GlyphId decodeToGidParameterized(IEncodingParameters parameters, long charCode)
Parameterized decode method. Not supported for CFF Font type.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| parameters | IEncodingParameters | Implementation of IEncodingParameters interface. | 
| charCode | long | Character code to get glyph identifier for. | 
Returns: GlyphId - Glyph identifier related to charCode passed.
encode(long gid, long charCode)
public void encode(long gid, long charCode)
Encodes the glyph. Not supported for CFF Font types.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| gid | long | Glyph id | 
| charCode | long | CharCode associated with the glyph id. | 
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| arg0 | java.lang.Object | 
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getNameToCharCodeIndex()
public NameToCodeMap getNameToCharCodeIndex()
Returns name to character code encoding map. Note: character code is not a unicode. Character code is a char index in Font encoding “table”.
Returns: NameToCodeMap - Name to character code encoding map.
getNameToGidIndex()
public NameToCodeMap getNameToGidIndex()
Returns name to character code encoding map. Note: character code is not a unicode. Character code is a char index in Font encoding “table”.
Returns: NameToCodeMap - Name to character code encoding map.
getNameToSidIndex()
public NameToCodeMap getNameToSidIndex()
Returns name to character code encoding map. Note: character code is not a unicode. Character code is a char index in Font encoding “table”.
Returns: NameToCodeMap - Name to character code encoding map.
getSidName(int sid)
public String getSidName(int sid)
Gets name for the SID specified.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| sid | int | String identfier. | 
Returns: java.lang.String - Name from string INDEX if found.
gidToUnicode(GlyphId gid)
public long gidToUnicode(GlyphId gid)
Decodes Gid to unicode. Glyph id is a unique number for a glyph, which is font type dependent. CFF Font glyph id can be instance of ( GlyphStringId ) class or ( GlyphUInt32Id ) class.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| gid | GlyphId | Glyph identifier of symbol to decode. | 
Returns: long - Unicode value related to glyph id passed.
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)
Decodes a unicode and returns glyph id. Glyph id is a unique number for a glyph, which is font type dependent. CFF Font glyph id can be instance of ( GlyphStringId ) class or ( GlyphUInt32Id ) class.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| unicode | long | Unicode to get glyph identifier for. | 
Returns: GlyphId - Glyph identifier related to unicode passed.
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| arg0 | long | 
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| arg0 | long | |
| arg1 | int |