Class TTFReader

java.lang.Object
org.docx4j.fonts.fop.fonts.apps.AbstractFontReader
org.docx4j.fonts.fop.fonts.apps.TTFReader

public class TTFReader
extends AbstractFontReader
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static int METRICS_VERSION
    Current version number for the metrics file
    static java.lang.String METRICS_VERSION_ATTR
    Used to detect incompatible versions of the generated XML files

    Fields inherited from class org.docx4j.fonts.fop.fonts.apps.AbstractFontReader

    log
  • Constructor Summary

    Constructors 
    Constructor Description
    TTFReader()  
  • Method Summary

    Modifier and Type Method Description
    static void checkMetricsVersion​(org.xml.sax.Attributes attr)
    Bugzilla 40739, check that attr has a metrics-version attribute compatible with ours.

    Methods inherited from class org.docx4j.fonts.fop.fonts.apps.AbstractFontReader

    parseArguments

    Methods inherited from class java.lang.Object

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

  • Constructor Details

  • Method Details

    • checkMetricsVersion

      public static void checkMetricsVersion​(org.xml.sax.Attributes attr) throws org.xml.sax.SAXException
      Bugzilla 40739, check that attr has a metrics-version attribute compatible with ours.
      Parameters:
      attr - attributes read from the root element of a metrics XML file
      Throws:
      org.xml.sax.SAXException - if incompatible