Class PCLSoftFontManager


  • public class PCLSoftFontManager
    extends java.lang.Object
    • Constructor Detail

      • PCLSoftFontManager

        public PCLSoftFontManager​(java.util.Map<Typeface,​PCLFontReader> fontReaderMap)
    • Method Detail

      • makeSoftFont

        public java.io.ByteArrayOutputStream makeSoftFont​(Typeface font,
                                                          java.lang.String text)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • assignFontID

        public byte[] assignFontID​(int fontID)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • getSoftFont

        public PCLSoftFont getSoftFont​(Typeface font,
                                       java.lang.String text)
        Finds a soft font associated with the given typeface. If more than one instance of the font exists (as each font is bound and restricted to 255 characters) it will find the last font with available capacity.
        Parameters:
        font - The typeface associated with the soft font
        Returns:
        Returns the PCLSoftFont with available capacity
      • getSoftFontFromID

        public PCLSoftFont getSoftFontFromID​(int index)
      • getSoftFontID

        public int getSoftFontID​(Typeface tf)
                          throws java.io.IOException
        Throws:
        java.io.IOException