Class CFFEncoding

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.Integer,​java.lang.String> codeToName  
    • Constructor Summary

      Constructors 
      Constructor Description
      CFFEncoding()
      Package-private constructor for subclasses.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void add​(int code, int sid)
      For use by subclasses only.
      void add​(int code, int sid, java.lang.String name)
      Adds a new code/SID combination to the encoding.
      java.lang.String getName​(int code)
      Returns the name of the glyph for the given character code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • codeToName

        private final java.util.Map<java.lang.Integer,​java.lang.String> codeToName
    • Constructor Detail

      • CFFEncoding

        CFFEncoding()
        Package-private constructor for subclasses.
    • Method Detail

      • getName

        public java.lang.String getName​(int code)
        Returns the name of the glyph for the given character code.
        Overrides:
        getName in class Encoding
        Parameters:
        code - character code
        Returns:
        PostScript glyph name
      • add

        public void add​(int code,
                        int sid,
                        java.lang.String name)
        Adds a new code/SID combination to the encoding.
        Parameters:
        code - the given code
        sid - the given SID
      • add

        protected void add​(int code,
                           int sid)
        For use by subclasses only.