Package com.adobe.fontengine.font.type1
Class Type1OutlineParser
- java.lang.Object
-
- com.adobe.fontengine.font.type1.Type1OutlineParser
-
public final class Type1OutlineParser extends Object
Extract the unhinted bezier outlines from a Type1 charstring. AType1OutlineParser
offers a single method,parse
which is given a Type1Font, a glyphID and anOutlineConsumer
. As the lines and curves of the charstring are parsed, theOutlineConsumer
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 theOutlineConsumer
on the thread on which it is called.
-
-
Constructor Summary
Constructors Constructor Description Type1OutlineParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
parse(Type1Font font, int glyphID, OutlineConsumer consumer)
-
-
-
Method Detail
-
parse
public void parse(Type1Font font, int glyphID, OutlineConsumer consumer) throws InvalidGlyphException, UnsupportedFontException
-
-