Class CFFCharset

    • Method Detail

      • addSID

        public void addSID​(int gid,
                           int sid,
                           String name)
        Adds a new GID/SID/name combination to the charset.
        Parameters:
        gid - GID
        sid - SID
      • addCID

        public void addCID​(int gid,
                           int cid)
        Adds a new GID/CID combination to the charset.
        Parameters:
        gid - GID
        cid - CID
      • getGIDForCID

        public int getGIDForCID​(int cid)
        Returns the GID for a given CID. Returns 0 if the CID is missing.
        Parameters:
        cid - CID
        Returns:
        GID
      • getNameForGID

        public String getNameForGID​(int gid)
        Returns the PostScript glyph name for the given GID.
        Parameters:
        gid - GID
        Returns:
        PostScript glyph name
      • getCIDForGID

        public int getCIDForGID​(int gid)
        Returns the CID for the given GID.
        Parameters:
        gid - GID
        Returns:
        CID