Class XMLFontMetricsReader

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.fop.fonts.XMLFontMetricsReader
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

@Deprecated public class XMLFontMetricsReader extends DefaultHandler
Deprecated.

Class for reading a metric.xml file and creating a font object. Typical usage:

 XMLFontMetricsReader reader = new XMLFontMetricsReader(<path til metrics.xml>);
 reader.setFontEmbedPath(<path to a .ttf or .pfb file or null to diable embedding>);
 reader.useKerning(true);
 Font f = reader.getFont();
 

N.B. This is deprecated functionality and is expected to be removed from a future version of FOP. New applications using FOP should not make direct or implied use of this mechanism.

  • Constructor Details

    • XMLFontMetricsReader

      public XMLFontMetricsReader(InputSource source, InternalResourceResolver resourceResolver) throws FOPException
      Deprecated.
      Construct a XMLFontMetricsReader object from a path to a metric.xml file and read metric data
      Parameters:
      source - Source of the font metric file
      Throws:
      FOPException - if loading the font fails
  • Method Details