Class CIDFont

    • Field Detail

      • width

        protected int[] width
        Contains the character widths for all characters in the font
    • Constructor Detail

      • CIDFont

        public CIDFont​(InternalResourceResolver resourceResolver)
        Parameters:
        resourceResolver - the URI resolver for controlling file access
    • Method Detail

      • getCIDType

        public abstract CIDFontType getCIDType()
        Returns the type of the CID font.
        Returns:
        the type of the CID font
      • getRegistry

        public abstract java.lang.String getRegistry()
        Returns the name of the issuer of the font.
        Returns:
        a String identifying an issuer of character collections - for example, Adobe
      • getOrdering

        public abstract java.lang.String getOrdering()
        Returns a font name for use within a registry.
        Returns:
        a String that uniquely names a character collection issued by a specific registry - for example, Japan1.
      • getSupplement

        public abstract int getSupplement()
        Returns the supplement number of the character collection.
        Returns:
        the supplement number
      • getCIDSet

        public abstract CIDSet getCIDSet()
        Returns the subset information for this font.
        Returns:
        the subset information
      • hasCodePoint

        public abstract boolean hasCodePoint​(int cp)
        Determines whether this font contains a particular code point/glyph.
        Parameters:
        cp - character to check
        Returns:
        True if the character is supported, False otherwise
      • mapCodePoint

        public abstract int mapCodePoint​(int cp)
        Map a Unicode code point to a code point in the font.
        Parameters:
        cp - code point to map
        Returns:
        the mapped code point
      • getDefaultWidth

        public int getDefaultWidth()
        Returns the default width for this font.
        Returns:
        the default width
      • isMultiByte

        public boolean isMultiByte()
        Determines whether the font is a multibyte font.
        Specified by:
        isMultiByte in interface FontMetrics
        Overrides:
        isMultiByte in class Typeface
        Returns:
        True if it is multibyte