public class Type1Encoding extends Object implements IFontEncoding, ISupportsNameAddressing
Represents Type1 Font encoding.
| Modifier and Type | Method and Description |
|---|---|
GlyphId |
decodeToGid(long charCode)
Decodes Gid to unicode.
|
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.
|
long |
gidToUnicode(GlyphId gid)
Decodes Gid to Unicode.
|
GlyphId |
unicodeToGid(long unicode)
Returns GlyphId for unicode.
|
public GlyphId decodeToGid(long charCode)
Decodes Gid to unicode.
Glyph id is a unique number for a glyph, which is font type dependent.
For example:
Type1's id is a glyph name, instance of (GlyphStringId) class.
TTF's id is an int index, instance of (GlyphUInt32Id) class.
decodeToGid in interface IFontEncodingcharCode - Character code to get glyph identifier for.public GlyphId decodeToGidParameterized(IEncodingParameters parameters, long charCode)
Parameterized decode method. Not supported for Type1 Font type.
decodeToGidParameterized in interface IFontEncodingparameters - Not supported for Type1 Font type.charCode - Not supported for Type1 Font type.public void encode(long gid,
long charCode)
Encodes the glyph. For TTF Fonts the character code is unicode. Not supported for Type1 Font types.
encode in interface IFontEncodinggid - Glyph id.charCode - Character code associated with the 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.
For example:
Type1's id is a glyph name, instance of (GlyphStringId) class.
TTF's id is an int index, instance of (GlyphUInt32Id) class.
gidToUnicode in interface IFontEncodinggid - Glyph identifier of symbol to decode.public GlyphId unicodeToGid(long unicode)
Returns GlyphId for unicode. Or notdef if font doesn't contain glyph for the unicode.
Glyph id is a unique number for a glyph, which is font type dependent.
For example:
Type1's id is a glyph name, instance of (GlyphStringId) class.
TTF's id is an int index, instance of (GlyphUInt32Id) class.
unicodeToGid in interface IFontEncodingunicode - Unicode 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 ISupportsNameAddressingCopyright © 2025 Aspose. All Rights Reserved.