Class AbstractFontReader

java.lang.Object
org.docx4j.fonts.fop.fonts.apps.AbstractFontReader
Direct Known Subclasses:
TTFReader

public abstract class AbstractFontReader
extends java.lang.Object
Abstract base class for the PFM and TTF Reader command-line applications.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected static org.slf4j.Logger log
    Logger instance
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractFontReader()  
  • Method Summary

    Modifier and Type Method Description
    protected static java.lang.String[] parseArguments​(java.util.Map options, java.lang.String[] args)
    Parse commandline arguments.

    Methods inherited from class java.lang.Object

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

    • log

      protected static org.slf4j.Logger log
      Logger instance
  • Constructor Details

  • Method Details

    • parseArguments

      protected static java.lang.String[] parseArguments​(java.util.Map options, java.lang.String[] args)
      Parse commandline arguments. put options in the HashMap and return arguments in the String array the arguments: -fn Perpetua,Bold -cn PerpetuaBold per.ttf Perpetua.xml returns a String[] with the per.ttf and Perpetua.xml. The hash will have the (key, value) pairs: (-fn, Perpetua) and (-cn, PerpetuaBold)
      Parameters:
      options - Map that will receive options
      args - the command-line arguments
      Returns:
      the arguments