Skip to main content

Module cs

Module cs 

Source
Expand description

Parsing and evaluation of charstrings.

Structsยง

Evaluator ๐Ÿ”’
Transient state for evaluating a charstring and handling recursive subroutine calls.
NopFilterSink
Command sink adapter that suppresses degenerate move and line commands.
TransformSink
Command sink adapter that applies a matrix and optional scale.

Enumsยง

CharstringKind
The type of a PostScript charstring.
Operator ๐Ÿ”’
PostScript charstring operator.
PendingElement ๐Ÿ”’
PointMode ๐Ÿ”’
Specifies how point coordinates for a curve are computed.
SeacMode ๐Ÿ”’
Specifies how the seac operation was invoked.

Constantsยง

NESTING_DEPTH_LIMIT
Maximum nesting depth for subroutine calls.
ONE_OVER_64 ๐Ÿ”’

Traitsยง

CharstringContext
Trait that provides context for charstring evaluation.
CommandSink
Trait for processing commands resulting from charstring evaluation.

Functionsยง

evaluate
Evaluates the given charstring and emits the resulting commands to the specified sink.