Skip to main content

Crate stet_graphics

Crate stet_graphics 

Source
Expand description

Graphics foundation for the stet PostScript and PDF rendering stack: colours, the display list, ICC profile management, and mesh / patch shading parsers.

Only depends on stet-fonts, so it is usable on its own when any of these subsystems is what you actually want:

  • icc — ICC colour management (CMYK↔sRGB, bulk image conversion, black-point compensation) via moxcms.
  • mesh_shading — decoders for PDF Type 4/5 (Gouraud triangle mesh) and Type 6/7 (Coons / tensor patch) shading streams.
  • display_list — the DisplayList / DisplayElement types that both the PostScript interpreter and stet-pdf-reader emit into. Custom output devices, PDF rewriters, and diff tools consume these.
  • color and device — colour types, line-style primitives, paint-parameter structs, and the PageSink / PageSinkFactory streaming traits.

Most users should use the stet facade crate to render PostScript or PDF, and stet-pdf-reader to parse PDFs into DisplayLists.

Modules§

color
Color types and CIE color space parameters.
device
Output device parameter types — pure data structures for rendering operations.
display_list
Display list — records drawing operations for deferred replay to a device.
icc
ICC color profile support via moxcms.
layer_set
Per-render OCG visibility overrides.
mesh_shading
Binary mesh and patch parsers for shading Types 4-7.