Package com.adobe.fontengine.font.type1
Class Type1OutlineParser
java.lang.Object
com.adobe.fontengine.font.type1.Type1OutlineParser
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). Theparse method invokes
the OutlineConsumer on the thread on which it is called.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparse(Type1Font font, int glyphID, OutlineConsumer consumer)
-
Constructor Details
-
Type1OutlineParser
public Type1OutlineParser()
-
-
Method Details
-
parse
public void parse(Type1Font font, int glyphID, OutlineConsumer consumer) throws InvalidGlyphException, UnsupportedFontException
-