Class PSNameFontDatabase

    • Constructor Detail

      • PSNameFontDatabase

        public PSNameFontDatabase()
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface PSNameResolver
        Returns:
        true if the font set is empty (has no fonts); false otherwise
      • findFont

        public Font findFont​(PostscriptFontDescription psDesc)
        Deprecated.
        This method is deprecated. Use findFont(String) instead.
        Description copied from interface: PSNameResolver
        Find a Font that matches the provided postscript description. No analysis (e.g., removal of a CMap extension) is done by this function.
        Specified by:
        findFont in interface PSNameResolver
        Parameters:
        psDesc - the postscript description of the font
        Returns:
        the Font.
      • findFont

        public Font findFont​(java.lang.String psName)
      • setResolutionPriority

        public FontResolutionPriority setResolutionPriority​(FontResolutionPriority priority)
        Description copied from interface: PSNameResolver
        Set the resolution mechanism that the PSNameResolver should use to decide which font should be chosen when two fonts have the same Postscript name.

        FontResolutionPriority.INTELLIGENT_FIRST specifies that an "intelligent" determination is made about the fonts and the "better" of the two font is chosen. If the "intelligent" resolver can make no distinction between the fonts then the first font to have been added first is chosen.

        FontResolutionPriority.INTELLIGENT_LAST specifies that an "intelligent" determination is made about the fonts and the "better" of the two font is chosen. If the "intelligent" resolver can make no distinction between the fonts then the first font to have been added last is chosen.

        FontResolutionPriority.FIRST specifies the first font added to the font set that matches the Postscript attributes is chosen.

        FontResolutionPriority.LAST specifies the last font added to the font set that matches the Postscript attributes is chosen.

        Specified by:
        setResolutionPriority in interface PSNameResolver
        Parameters:
        priority - The resolution mechanism to use
        Returns:
        The old resolution priority setting.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object