Text & composition
| Operation | What it does |
|---|---|
| ``Hokusai.text(_:layout:style:)` | Renders text as a new pipeline with a TextStyle (font, size, colour, alignment, stroke, shadow, rotation). |
drawText(_:placement:layout:style:) |
Draws text onto a pipeline; sugar for compositing it. |
composite(_:space:) |
Blends CompositeLayers (placement, blend, opacity) in srgb or linear space. |
Text can be plain or Pango markup, laid out naturally, wrapped to a width or fitted to a box. Text rendering needs a libvips built with Pango; fonts come from the host.