Class GlyphNames


  • public final class GlyphNames
    extends Object
    This class supports PostScript glyph names.
    • Constructor Detail

      • GlyphNames

        public GlyphNames()
    • Method Detail

      • resolveUSVWithAGNCNameTable

        public static String resolveUSVWithAGNCNameTable​(int usv)
      • resolveUSVToAGNCName

        public static String resolveUSVToAGNCName​(int usv)
      • generateUPlusName

        public static 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 List resolveAGNCName​(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​(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 String getAGNCNameSuffix​(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 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 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 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.