Class CFFCharset

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CFFCharset.Entry
      This class represents a single SID/name mapping of the charset.
    • Constructor Summary

      Constructors 
      Constructor Description
      CFFCharset()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEntry​(CFFCharset.Entry entry)
      Add a single entry.
      java.util.List<CFFCharset.Entry> getEntries()
      A list of all entries within this charset.
      java.lang.String getName​(int sid)
      Returns the name corresponding to the given SID.
      int getSID​(java.lang.String name)
      Returns the SID corresponding to the given name.
      boolean isFontSpecific()
      Determines if the charset is font specific or not.
      void register​(int sid, java.lang.String name)
      Adds a new SID/name combination to the charset.
      • Methods inherited from class java.lang.Object

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

      • CFFCharset

        public CFFCharset()
    • Method Detail

      • isFontSpecific

        public boolean isFontSpecific()
        Determines if the charset is font specific or not.
        Returns:
        if the charset is font specific
      • getSID

        public int getSID​(java.lang.String name)
        Returns the SID corresponding to the given name.
        Parameters:
        name - the given SID
        Returns:
        the corresponding SID
      • getName

        public java.lang.String getName​(int sid)
        Returns the name corresponding to the given SID.
        Parameters:
        sid - the given SID
        Returns:
        the corresponding name
      • register

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

        public void addEntry​(CFFCharset.Entry entry)
        Add a single entry.
        Parameters:
        entry - the entry to be added
      • getEntries

        public java.util.List<CFFCharset.Entry> getEntries()
        A list of all entries within this charset.
        Returns:
        a list of all entries