Class GlyphNames


  • public final class GlyphNames
    extends java.lang.Object
    This class supports PostScript glyph names.
    • Constructor Summary

      Constructors 
      Constructor Description
      GlyphNames()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String generateUPlusName​(int usv)  
      static java.util.Map getAdobeGlyphNameList()
      Return the Adobe glyph name list as a HashMap with the glyph name as its key and the Unicode for that name as its value.
      static java.util.Map getAdobeGlyphNameListMulti()
      Return the Adobe glyph name list as a HashMap with the glyph name as its key and the Unicode for that name as its value.
      static java.lang.String getAGNCNameSuffix​(java.lang.String name)
      The suffix of the name as per the Adobe Glyph Naming Convention.
      static java.util.Map getDingbatNameList()
      Return the Dingbat name list as a HashMap with the glyph name as its key and the Unicode for that name as its value.
      static java.util.List resolveAGNCName​(java.lang.String name, boolean isDingbats)
      Find the mapping of a name via the Adobe Glyph Naming convention.
      static int[] resolveAGNCNameIntoArray​(java.lang.String name, boolean isDingbats)
      A convenience method wrapping resolveAGNCName for code that wants arrays and not collection objects.
      static java.lang.String resolveUSVToAGNCName​(int usv)  
      static java.lang.String resolveUSVWithAGNCNameTable​(int usv)  
      • Methods inherited from class java.lang.Object

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

      • GlyphNames

        public GlyphNames()
    • Method Detail

      • resolveUSVWithAGNCNameTable

        public static java.lang.String resolveUSVWithAGNCNameTable​(int usv)
      • resolveUSVToAGNCName

        public static java.lang.String resolveUSVToAGNCName​(int usv)
      • generateUPlusName

        public static java.lang.String generateUPlusName​(int usv)
        Parameters:
        usv -
        Returns:
        the "name" of the Unicode scalar value in the form 'u' followed by the hex representation (see PDF 1.6 specs)
      • resolveAGNCName

        public static java.util.List resolveAGNCName​(java.lang.String name,
                                                     boolean isDingbats)
        Find the mapping of a name via the Adobe Glyph Naming convention.
        Parameters:
        name - the String containing the name to resolve
        isDingbats - whether the name is that of the Dingbats font
        Returns:
        List containing the USVs described by the name
      • resolveAGNCNameIntoArray

        public static int[] resolveAGNCNameIntoArray​(java.lang.String name,
                                                     boolean isDingbats)
        A convenience method wrapping resolveAGNCName for code that wants arrays and not collection objects.
        Parameters:
        name - the String containing the name to resolve
        isDingbats - whether the name is that of the Dingbats font
        Returns:
        array containing the USVs described by the name
      • getAGNCNameSuffix

        public static java.lang.String getAGNCNameSuffix​(java.lang.String name)
        The suffix of the name as per the Adobe Glyph Naming Convention.
        Parameters:
        name - the String containing the name to resolve
      • getAdobeGlyphNameList

        public static java.util.Map getAdobeGlyphNameList()
        Return the Adobe glyph name list as a HashMap with the glyph name as its key and the Unicode for that name as its value.
      • getAdobeGlyphNameListMulti

        public static java.util.Map getAdobeGlyphNameListMulti()
        Return the Adobe glyph name list as a HashMap with the glyph name as its key and the Unicode for that name as its value.
      • getDingbatNameList

        public static java.util.Map getDingbatNameList()
        Return the Dingbat name list as a HashMap with the glyph name as its key and the Unicode for that name as its value.