Class PSFontResource


  • abstract class PSFontResource
    extends java.lang.Object
    A DSC resource corresponding to a font. This class handles the possible other resources that a font may depend on. For example, a CID-keyed font depends on a CIDFont resource, a CMap resource, and the ProcSet CIDInit resource.
    • Constructor Summary

      Constructors 
      Constructor Description
      PSFontResource()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static PSFontResource createFontResource​(org.apache.xmlgraphics.ps.PSResource fontResource)  
      (package private) static PSFontResource createFontResource​(org.apache.xmlgraphics.ps.PSResource fontResource, org.apache.xmlgraphics.ps.PSResource procsetCIDInitResource, org.apache.xmlgraphics.ps.PSResource cmapResource, org.apache.xmlgraphics.ps.PSResource cidFontResource)  
      (package private) abstract java.lang.String getName()
      Returns the name of the font resource.
      (package private) abstract void notifyResourceUsageOnPage​(org.apache.xmlgraphics.ps.dsc.ResourceTracker resourceTracker)
      Notifies the given resource tracker of all the resources needed by this font.
      • Methods inherited from class java.lang.Object

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

      • PSFontResource

        PSFontResource()
    • Method Detail

      • createFontResource

        static PSFontResource createFontResource​(org.apache.xmlgraphics.ps.PSResource fontResource)
      • createFontResource

        static PSFontResource createFontResource​(org.apache.xmlgraphics.ps.PSResource fontResource,
                                                 org.apache.xmlgraphics.ps.PSResource procsetCIDInitResource,
                                                 org.apache.xmlgraphics.ps.PSResource cmapResource,
                                                 org.apache.xmlgraphics.ps.PSResource cidFontResource)
      • getName

        abstract java.lang.String getName()
        Returns the name of the font resource.
        Returns:
        the name of the font
      • notifyResourceUsageOnPage

        abstract void notifyResourceUsageOnPage​(org.apache.xmlgraphics.ps.dsc.ResourceTracker resourceTracker)
        Notifies the given resource tracker of all the resources needed by this font.
        Parameters:
        resourceTracker -