Class CIDType0Glyph2D

  • All Implemented Interfaces:
    Glyph2D

    final class CIDType0Glyph2D
    extends java.lang.Object
    implements Glyph2D
    GeneralPath conversion for CFF CIDFont.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.Integer,​java.awt.geom.GeneralPath> cache  
      private PDCIDFontType0 font  
      private java.lang.String fontName  
      private static org.apache.commons.logging.Log LOG  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()
      Remove all cached resources.
      java.awt.geom.GeneralPath getPathForCharacterCode​(int code)
      Returns the path describing the glyph for the given character code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        private static final org.apache.commons.logging.Log LOG
      • cache

        private final java.util.Map<java.lang.Integer,​java.awt.geom.GeneralPath> cache
      • fontName

        private final java.lang.String fontName
    • Constructor Detail

      • CIDType0Glyph2D

        CIDType0Glyph2D​(PDCIDFontType0 font)
        Constructor.
        Parameters:
        font - Type 0 CIDFont
    • Method Detail

      • getPathForCharacterCode

        public java.awt.geom.GeneralPath getPathForCharacterCode​(int code)
        Description copied from interface: Glyph2D
        Returns the path describing the glyph for the given character code.
        Specified by:
        getPathForCharacterCode in interface Glyph2D
        Parameters:
        code - the character code
        Returns:
        the GeneralPath for the given character code
      • dispose

        public void dispose()
        Description copied from interface: Glyph2D
        Remove all cached resources.
        Specified by:
        dispose in interface Glyph2D