public class CffEncoding extends Object implements IFontEncoding, ISupportsNameAddressing
Represents CFF _font encoding.
| Modifier and Type | Method and Description |
|---|---|
GlyphId |
decodeToGid(long charCode)
Gets Gid for charCode passed.
|
GlyphId |
decodeToGidParameterized(IEncodingParameters parameters,
long charCode)
Parameterized decode method.
|
void |
encode(long gid,
long charCode)
Encodes the glyph.
|
NameToCodeMap |
getNameToCharCodeIndex()
Returns name to character code encoding map.
|
NameToCodeMap |
getNameToGidIndex()
Returns name to character code encoding map.
|
NameToCodeMap |
getNameToSidIndex()
Returns name to character code encoding map.
|
String |
getSidName(int sid)
Gets name for the SID specified.
|
protected String[] |
getStandardStrings()
Returns standard CFF strings.
|
long |
gidToUnicode(GlyphId gid)
Decodes Gid to unicode.
|
GlyphId |
unicodeToGid(long unicode)
Decodes a unicode and returns glyph id.
|
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.
gidToUnicode in interface IFontEncodinggid - Glyph identifier of symbol to decode.public void encode(long gid,
long charCode)
Encodes the glyph. Not supported for CFF Font types.
encode in interface IFontEncodinggid - Glyph idcharCode - CharCode associated with the glyph id.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.
unicodeToGid in interface IFontEncodingunicode - Unicode to get glyph identifier for.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.
decodeToGid in interface IFontEncodingcharCode - Character code (CID) to get glyph identifier for.public GlyphId decodeToGidParameterized(IEncodingParameters parameters, long charCode)
Parameterized decode method. Not supported for CFF Font type.
decodeToGidParameterized in interface IFontEncodingparameters - Implementation of IEncodingParameters interface.charCode - Character code to get glyph identifier for.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".
getNameToCharCodeIndex in interface ISupportsNameAddressingpublic 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".
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".
public String getSidName(int sid)
Gets name for the SID specified.
sid - String identfier.protected String[] getStandardStrings()
Returns standard CFF strings.
Copyright © 2025 Aspose. All Rights Reserved.