Skip to main content

Module charstring

Module charstring 

Source
Expand description

Parsing and evaluation of charstrings.

StructsΒ§

ControlBoundsSink
Sink that measures the box a drawing stays within.
Evaluator πŸ”’
Transient state for evaluating a charstring and handling recursive subroutine calls.
NopFilterSink
Command sink adapter that suppresses degenerate move and line commands.
NullSink
Sink that drops all drawing output into the ether.
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Β§

INLINE_BUILD_CHAR_LEN πŸ”’
The number of elements of a multiple master font’s BuildCharArray held inline. A font that declares a longer array has it on the heap.
MAX_OPERATIONS πŸ”’
Maximum number of operations that can be processed during charstring evaluation.
NESTING_DEPTH_LIMIT
Maximum nesting depth for subroutine calls.
ONE_OVER_64 πŸ”’
STORAGE_SIZE πŸ”’
Size of the transient array that put and get address.

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.
evaluate_width
Returns the advance width the charstring states, without drawing it.
fixed_sqrt πŸ”’
The square root of value, by the method FreeType uses.