Class Type1OutlineParser


  • public final class Type1OutlineParser
    extends java.lang.Object
    Extract the unhinted bezier outlines from a Type1 charstring. A Type1OutlineParser offers a single method, parse which is given a Type1Font, a glyphID and an OutlineConsumer. As the lines and curves of the charstring are parsed, the OutlineConsumer is called.

    The same Type1OutlineParser object can be used repeatedly to extract outlines. The successive invocations do not need to be for the same font, nor do they need to use the same consumer.

    The consumer must not call parse on the Type1OutlineParser that invoked it.

    Synchronization

    This class is not synchronized. Multiple instances can safely coexist without threadsafety issues, but each must only be accessed from one thread (or must be guarded by the client). The parse method invokes the OutlineConsumer on the thread on which it is called.