Package org.docx4j.fonts.fop.fonts.apps
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 intMETRICS_VERSIONCurrent version number for the metrics filestatic java.lang.StringMETRICS_VERSION_ATTRUsed to detect incompatible versions of the generated XML files -
Constructor Summary
Constructors Constructor Description TTFReader() -
Method Summary
Modifier and Type Method Description static voidcheckMetricsVersion(org.xml.sax.Attributes attr)Bugzilla 40739, check that attr has a metrics-version attribute compatible with ours.
-
Field Details
-
METRICS_VERSION_ATTR
public static final java.lang.String METRICS_VERSION_ATTRUsed to detect incompatible versions of the generated XML files- See Also:
- Constant Field Values
-
METRICS_VERSION
public static final int METRICS_VERSIONCurrent version number for the metrics file- See Also:
- Constant Field Values
-
-
Constructor Details
-
TTFReader
public TTFReader()
-
-
Method Details
-
checkMetricsVersion
public static void checkMetricsVersion(org.xml.sax.Attributes attr) throws org.xml.sax.SAXExceptionBugzilla 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
-