com.aspose.font

Interfaces

Classes

Enums

Exceptions

com.aspose.font

Class CffEncoding

    • Method Detail

      • gidToUnicode

        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.

        Specified by:
        gidToUnicode in interface IFontEncoding
        Parameters:
        gid - Glyph identifier of symbol to decode.
        Returns:
        Unicode value related to glyph id passed.
      • encode

        public void encode(long gid,
                           long charCode)

        Encodes the glyph. Not supported for CFF Font types.

        Specified by:
        encode in interface IFontEncoding
        Parameters:
        gid - Glyph id
        charCode - CharCode associated with the glyph id.
      • unicodeToGid

        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.

        Specified by:
        unicodeToGid in interface IFontEncoding
        Parameters:
        unicode - Unicode to get glyph identifier for.
        Returns:
        Glyph identifier related to unicode passed.
      • decodeToGid

        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.

        Specified by:
        decodeToGid in interface IFontEncoding
        Parameters:
        charCode - Character code (CID) to get glyph identifier for.
        Returns:
        Glyph identifier related to CID passed.
      • decodeToGidParameterized

        public GlyphId decodeToGidParameterized(IEncodingParameters parameters,
                                                long charCode)

        Parameterized decode method. Not supported for CFF Font type.

        Specified by:
        decodeToGidParameterized in interface IFontEncoding
        Parameters:
        parameters - Implementation of IEncodingParameters interface.
        charCode - Character code to get glyph identifier for.
        Returns:
        Glyph identifier related to charCode passed.
      • 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".

        Specified by:
        getNameToCharCodeIndex in interface ISupportsNameAddressing
        Returns:
        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:
        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:
        Name to character code encoding map.
      • getSidName

        public String getSidName(int sid)

        Gets name for the SID specified.

        Parameters:
        sid - String identfier.
        Returns:
        Name from string INDEX if found.
      • getStandardStrings

        protected String[] getStandardStrings()

        Returns standard CFF strings.

        Returns:
        Standard CFF strings.